View Single Post
Old 10-05-2016, 12:05 AM   #2
rajkiran
Registered User
 
Join Date: Aug 2016
Posts: 961
JavaScript has two scopes: global and local. A variable that is declared outside a function definition is a global variable, and its value is accessible and modifiable throughout your program. A variable that is declared inside a function definition is local.
rajkiran is offline   Reply With Quote