-
Notifications
You must be signed in to change notification settings - Fork 0
Variable Scope
Marie-Louise edited this page Aug 24, 2018
·
4 revisions
The concept of variable scope means that the variable is controlled depending on the location that the variable is declared
JavaScript has two scopes - global & local
Before ECMAS2015 Variables declared inside a function (locally) have what is described as Function Scope .Local variables can be accessed ONLY inside the function.
global scope