Question: Explain the difference between global and local variables, and describe how using or not using the var keyword can affect the scope of a variable.
Explain the difference between global and local variables, and describe how using or not using the var keyword can affect the scope of a variable.
Step by Step Solution
3.38 Rating (164 Votes )
There are 3 Steps involved in it
A global variable is one that is declared outside a function and is avai... View full answer
Get step-by-step solutions from verified subject matter experts
