Merge pull request #118 from foodaka/fix-typo-1-js-06-03-closure

Typo on Closures 1-js-06-03
This commit is contained in:
Ilya Kantor 2017-08-05 00:16:14 +02:00 committed by GitHub
commit 77434692b9

View file

@ -70,7 +70,7 @@ In JavaScript, every running function, code block and the script as a whole have
The Lexical Environment object consists of two parts:
1. *Environment Record* -- an object that has all local variables as its properties (and some other information like the value of `this`).
2. A reference to the *outer lexical environment*, usually the one associated with the code lexically right outside of it (outside of the current figure brackets).a
2. A reference to the *outer lexical environment*, usually the one associated with the code lexically right outside of it (outside of the current figure brackets).
So, a "variable" is just a property of the special internal object, Environment Record. "To get or change a variable" means "to get or change the property of that object".