Is the term “activation object” just another name of “variable object” or is there actually any difference between them? I have been reading a few JavaScript articles about how variable scopes are formed in an execution context, and from my point of view it seems that in most of the articles they use these two terms interchangeably.
Share
Well, I just learned something :). From this article, it would appear that within the execution context of a function, the Activation Object is used as the Variable Object:
However, when you’re in the global scope, there isn’t an Activation Object, so the Global Object is used as the Variable Object instead:
So it sounds like "Activation Object" and "Variable Object" are the same thing within a function context, but not within the global context.