Created
December 7, 2015 08:56
-
-
Save ratul0/0f87f6309545b2f8063d to your computer and use it in GitHub Desktop.
Re-declaring the same variable using let
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
| if (x) { | |
| let foo; | |
| let foo; // TypeError thrown. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment