Merge pull request #784 from 11un/patch-13

typo / wording "remnant"
This commit is contained in:
Ilya Kantor 2019-02-06 18:21:45 +03:00 committed by GitHub
commit b526e6bde5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ sayHi();
alert(phrase); // Error: phrase is not defined alert(phrase); // Error: phrase is not defined
``` ```
As we can see, `var` pierces through `if`, `for` or other code blocks. That's because a long time ago in JavaScript blocks had no Lexical Environments. And `var` is a reminiscence of that. As we can see, `var` pierces through `if`, `for` or other code blocks. That's because a long time ago in JavaScript blocks had no Lexical Environments. And `var` is a remnant of that.
## "var" are processed at the function start ## "var" are processed at the function start