Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lexical scoping javascript

A lexical scope in JavaScript means that a variable defined outside a function can be accessible inside another function defined after the variable declaration. But the opposite is not true; the variables defined inside a function will not be accessible outside that function.
 
PREVIOUS NEXT
Tagged: #lexical #scoping #javascript
ADD COMMENT
Topic
Name
5+2 =