Tuesday, November 4, 2014

Variable Scope

In the example below the variable, a , is created outside both functions and can be used by both functions.


In the example below the variable a is created inside a function and only that function can use the variable.

 

No comments:

Post a Comment