Archive for June 13th, 2010

Sunday, June 13th, 2010

The Scope of Variables

The scope of a variable is the extent of the code in which the variable exists. For JavaScript variables defined within a function their scope is the function that they are defined in. Variables defined outside of functions as well as variables used without being first defined have global scope. The Scope of Variables