Skip to content

Commit

Permalink
Update link for Temporal Dead Zone explanation (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
oogali authored and metagrover committed Jun 20, 2017
1 parent e281088 commit 8b2bcad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Another form of block-scoped declaration is the `const`, which creates constants

A few things to keep in mind:

* Hoisting of `let` and `const` vary from the traditional hoisting of variables and functions. Both `let` and `const` are hoisted, but cannot be accessed before their declaration, because of [Temporal Dead Zone](http://jsrocks.org/2015/01/temporal-dead-zone-tdz-demystified/)
* Hoisting of `let` and `const` vary from the traditional hoisting of variables and functions. Both `let` and `const` are hoisted, but cannot be accessed before their declaration, because of [Temporal Dead Zone](http://jsrocks.org/2015/01/temporal-dead-zone-tdz-demystified)
* `let` and `const` are scoped to the nearest enclosing block.
* When using `const`, use CAPITAL_CASING (this is a common convention).
* `const` has to be defined with its declaration.
Expand Down

0 comments on commit 8b2bcad

Please sign in to comment.