Escopo lexical JavaScript
var x = 2;
var add = function() {
var y = 1;
return x + y;
};
Cloudy Constrictor
var x = 2;
var add = function() {
var y = 1;
return x + y;
};