1

I feel many people suffer from this same problem.

Meanwhile why the fuck would this not work in a javascript class or am I getting my languages mixed up ?

Will know soon enough.

Comments
  • 1
    😂 there is no class but stupid prototype in JS
  • 3
    Its „this“ not „self“ just JS syntax
  • 0
    Keep using this in JS my dude 😂
  • 4
    When you forget Javascript is not actually OOP and 'self' is, if anything referred to as window.self...

    This.tree would be the scope you are looking for.
  • 0
    @Crismon I know but I had been working on python the day earlier, happens sometimes.
  • 0
    Use this keyword
Add Comment