eval('2 + 2') returns
eval is available in the global scope. The lexical scope of the evaluation is the local scope unless invoked indirectly (e.g.
var geval = eval; geval(s);).
The use of
eval is strongly discouraged. See the Remarks section for details.