Is ‘window’ really global in JavaScript?
The reason why you can access “out of scope” or “free” variables in ECMAScript is the so-called scope chain. The scope chain is a special property from each execution context. As mentioned several times before, a context object looks at least like: [[scope]] Variable / Activation Object “this” context value Each time you access a … Read more