Merge pull request #278 from usernamehw/patch-20

Update article.md
This commit is contained in:
Ilya Kantor 2017-11-01 09:00:15 +03:00 committed by GitHub
commit a61add9800
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ let counter2 = makeCounter();
alert( counter1() ); // 0
alert( counter1() ); // 1
alert( counter2() ); // 0 (independant)
alert( counter2() ); // 0 (independent)
```
@ -567,7 +567,7 @@ Lexical Environment objects that we've been talking about are subjects to same m
return function() { alert(value); };
}
// 3 functions in array, every of them links to Lexical Environment
// 3 functions in array, every one of them links to Lexical Environment
// from the corresponding f() run
// LE LE LE
let arr = [f(), f(), f()];