Skip to content

Instantly share code, notes, and snippets.

@sampathsl sampathsl/index2.js
Created Dec 13, 2015

Embed
What would you like to do?
ES6 - var vs let keywords
let checkDataLet = 'Test';
console.log('Outside let showES6Features: ' + checkDataLet);
while(true){
//let key word
let checkDataLet = 'Poop!';
console.log('Inside let showES6Features: ' + checkDataLet);
break;
}
console.log('Outside let showES6Features: ' + checkDataLet);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.