Created
September 10, 2014 07:55
-
-
Save aaronfrost/8d1d1e7e97a6f3780ba8 to your computer and use it in GitHub Desktop.
Is this how LET should work?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a = 0; | |
{ | |
console.log(a); //Node throws error cause "a" isn`t defined yet, but it was defined on line one. | |
let a = 1; | |
console.log(a); | |
} | |
console.log(a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read it like this: