Skip to content

Instantly share code, notes, and snippets.

@c0depanda

c0depanda/let.js Secret

Created July 20, 2018 05:49
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 c0depanda/25075510ddb0f5afdfeafcb889b02328 to your computer and use it in GitHub Desktop.
Save c0depanda/25075510ddb0f5afdfeafcb889b02328 to your computer and use it in GitHub Desktop.
let foo = 10;
let bar = 5;
if (true) {
let bar = foo * 2;
console.log( bar ); // 20
}
console.log( bar ); // 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment