Created
November 30, 2015 04:13
-
-
Save albizures/e7a89f9cce58803ec42a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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