Skip to content

Instantly share code, notes, and snippets.

@albizures
Created November 30, 2015 04:13
Show Gist options
  • Save albizures/e7a89f9cce58803ec42a to your computer and use it in GitHub Desktop.
Save albizures/e7a89f9cce58803ec42a to your computer and use it in GitHub Desktop.
function foo(){
console.log(b); // undefined
console.log(c); // undefined
console.log(d); // undefined
console.log(e); // b is not defined
var b = 1;
if(true){
var c = 0;
}
if(false){
var d = 2
}
}
foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment