Created
May 2, 2015 02:31
-
-
Save rcstr/11163eaf1051041ba21e to your computer and use it in GitHub Desktop.
a couple of things i learned about JS today
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
(function() { | |
"use strict"; | |
{ // YAY! we can use braces just like this | |
let foo = 'bar'; | |
} | |
console.log(foo); // undefined, the magic of let | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment