Skip to content

Instantly share code, notes, and snippets.

@jurgens
Created April 17, 2017 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurgens/bef11ed7178d68f44f6d846b3a16efab to your computer and use it in GitHub Desktop.
Save jurgens/bef11ed7178d68f44f6d846b3a16efab to your computer and use it in GitHub Desktop.
var foo = 1;
function bar() {
if (!foo) {
var foo = 10;
}
alert(foo);
}
bar();
var a = 1;
function b() {
a = 10;
return;
function a() {}
}
b();
alert(a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment