SCOPING - GLOBAL CODE
Global code is code outside of any function. Scoping for global code is simple, only the global object is searched for variables. Modifying the scoping of global code is done in the seEval call used to invoke that code using the scopestart and scopeend fields of the eval parameters as described above. The script user can then modify the scoping by using the with statement.
SCOPING - FUNCTIONS