mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-11 13:18:00 -05:00
[guide] Fix Temporal dead zone link anchor
This commit is contained in:
@@ -1805,7 +1805,7 @@ Other Style Guides
|
||||
## Hoisting
|
||||
|
||||
<a name="hoisting--about"></a><a name="14.1"></a>
|
||||
- [14.1](#hoisting--about) `var` declarations get hoisted to the top of their closest enclosing function scope, their assignment does not. `const` and `let` declarations are blessed with a new concept called [Temporal Dead Zones (TDZ)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#Temporal_Dead_Zone). It’s important to know why [typeof is no longer safe](http://es-discourse.com/t/why-typeof-is-no-longer-safe/15).
|
||||
- [14.1](#hoisting--about) `var` declarations get hoisted to the top of their closest enclosing function scope, their assignment does not. `const` and `let` declarations are blessed with a new concept called [Temporal Dead Zones (TDZ)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#Temporal_dead_zone). It’s important to know why [typeof is no longer safe](http://es-discourse.com/t/why-typeof-is-no-longer-safe/15).
|
||||
|
||||
```javascript
|
||||
// we know this wouldn’t work (assuming there
|
||||
|
||||
Reference in New Issue
Block a user