Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Last active November 6, 2018 21:17
Show Gist options
  • Save dsibinski/edf0470e2d6e832298738d41937bbaf7 to your computer and use it in GitHub Desktop.
Save dsibinski/edf0470e2d6e832298738d41937bbaf7 to your computer and use it in GitHub Desktop.
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