Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    True, but the in-scope variables go beyond just the current variable object. In-scope variables are determined by the scope chain, which is a chain consisting (in the normal case) of a series of variable objects and terminating with the global object (although the with statement can be used to insert other objects in the chain). Commented Jan 12, 2010 at 19:29
  • +1 for links to bclary.com. A HTML version of the up-to-date spec will be appearing in the next couple of months on the ECMA website, I'm glad to say. Commented Jan 12, 2010 at 19:30
  • 3
    Just a note, both the links are broken.
    – 0xc0de
    Commented Sep 13, 2016 at 6:13
  • you CAN - with static analysis jsfiddle.net/mathheadinclouds/bvx1hpfn/11 Commented Nov 14, 2019 at 15:31