Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

local vs global variables

Local variables:
These variables can be used or exist 
only inside the function. These variables
are not used or referred by any other function.

Global variables:
These variables are the variables which
can be accessed throughout the program.
Global variables cannot be created
whenever that function is called.
 
PREVIOUS NEXT
Tagged: #local #global #variables
ADD COMMENT
Topic
Name
8+3 =