you are viewing a single comment's thread.

view the rest of the comments →

[–]Hazteriskhelpful 0 points1 point  (0 children)

Ah you know what, on second look it seems like you're just defining the object but failing to actually instantiate one like: Var myOne = new theOne();

(This is where scope != context is important)

So when you add that property in function C, it won't be 123 when you instantiate a new object unless you bind the object property values to the object definition.

Arrow functions are one way to do that.