Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update language.md #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/docs/js/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ const { type, ...coords } = data
// 'coords' is now the 'data' object without its 'type' property.
```

### Hoisting
### 变量提升

- `var` 存在变量提升的情况,即 `var` 声明会被提升至该作用域的顶部,但是他们的赋值并不会。而 `const` 和 `let` 并不存在这种情况,他们被赋予了 [Temporal Dead Zones, TDZ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#Temporal_dead_zone_and_errors_with_let), 了解 [typeof 不再安全](http://es-discourse.com/t/why-typeof-is-no-longer-safe/15)很重要

Expand Down