Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lexical scope javascript

var x = 2;
var add = function() {
    var y = 1;
    return x + y;
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lexical #scope #javascript
ADD COMMENT
Topic
Name
5+3 =