Skip to content

Instantly share code, notes, and snippets.

View avalan4e57's full-sized avatar

Igor Chernega avalan4e57

View GitHub Profile
@avalan4e57
avalan4e57 / index.js
Last active April 23, 2019 06:53
Lexical environment: global and functional
// Global lexical environment is here
let a = 'a'
const b = 'b'
for (let i = 0; i < 5; i++) {
console.log(i)
}
function foo() {
// Functional lexical environment is here
let a = 'A'
function bar() {