Merge pull request #2222 from vsemozhetbyt/patch-11
Remove possibly outdated comment
This commit is contained in:
commit
ae723281e5
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ function sayHi() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sayHi();
|
sayHi();
|
||||||
alert(phrase); // Error: phrase is not defined (Check the Developer Console)
|
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 remnant 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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue