Skip to content

Instantly share code, notes, and snippets.

@sampathsl
Created December 13, 2015 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sampathsl/43f6b68c6cb61eb356f5 to your computer and use it in GitHub Desktop.
Save sampathsl/43f6b68c6cb61eb356f5 to your computer and use it in GitHub Desktop.
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