Created
August 18, 2014 10:32
-
-
Save psaitu/0733116f5f6d5b417ee5 to your computer and use it in GitHub Desktop.
declaring variables with limited scope in javascript
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 do_something() { | |
| let foo; | |
| let foo; // This works fine. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment