Last active
November 6, 2018 21:17
-
-
Save dsibinski/edf0470e2d6e832298738d41937bbaf7 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 a() { | |
b(); | |
function b() { | |
var x = 'Hello world!'; | |
c(); | |
} | |
} | |
function c() { | |
console.log(x); // Uncaught ReferenceError: | |
// x is not defined | |
} | |
a(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment