Is it possible to achieve dynamic scoping in JavaScript without resorting to eval?

To add a note on this topic: In JavaScript whenever you make use of: function declaration statement or function definition expression then local variables will have Lexical Scoping. Function constructor then local variables will refer to the global scope (top-level code) this is the only built-in object in JavaScript that has a dynamic scoping and … Read more