Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lexical environment in javascript

// lexical environment
function a() {
  var b = 10;
  c();
  function c() {
    console.log(b);
  }
}
a();
 
PREVIOUS NEXT
Tagged: #lexical #environment #javascript
ADD COMMENT
Topic
Name
8+7 =