Skip to content

Instantly share code, notes, and snippets.

@aaronfrost
Created March 6, 2012 08:59
Show Gist options
  • Save aaronfrost/1985023 to your computer and use it in GitHub Desktop.
Save aaronfrost/1985023 to your computer and use it in GitHub Desktop.
jsnextten
let foo = 0;
if(true){
let bar = 1;
}
console.log( foo + bar );
//results in runtime error, bar is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment