A variable declared (using var) within a JavaScript function becomes LOCAL and can only be accessed from within that function. (the variable has local scope).You can have local variables with the same name in different functions, because local variables are only recognized by the function in which they are declared.Local variables are deleted as soon as the function is completed.
Javascript
Topic: JS Functions
What is a Local JavaScript Variables?
Browse random answers:
What is a JavaScript Function Syntax?
How to get value from RadioButtonList control?
How to Calling a Function with Arguments?
What is a Local JavaScript Variables?
What is a Global JavaScript Variables?