Created
December 13, 2015 17:59
-
-
Save sampathsl/aaa5ae5c3f2482706b93 to your computer and use it in GitHub Desktop.
ES6 - var vs let keywords
This file contains 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
var checkDataVar = 'Test'; | |
console.log('Outside var showES5Features: ' + checkDataVar); | |
while(true){ | |
//var key word | |
var checkDataVar = 'Poop!'; | |
console.log('Inside var showES5Features: ' + checkDataVar); | |
break; | |
} | |
console.log('Outside var showES5Features: ' + checkDataVar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment