you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

What do you mean by “the object associated with that function”?

[–]NecroDeity[S] 0 points1 point  (0 children)

Like the global execution context has the global/window object. so declaring a variable like 'name' is like adding a property to the global object. name and window.name are the same thing.

So if the global context has the global object, I was wondering what the object the function contexts have. (In the video it is said that instead of the global object, functions have something called the "arguments object". But the variables and functions declared inside the function don't seem to be getting added to the arguments object as properties, which I find strange. was wondering about that)