Skip to content

Instantly share code, notes, and snippets.

@brandonsueur brandonsueur/.js
Created Jul 12, 2018

Embed
What would you like to do?
🎉 Test JavaScript
function magic() {
let a = 1;
a = 2;
let b = innerMagic();
a = 3;
return b;
function innerMagic() {
return a;
}
}
magic() // return ? => 3, 2 or "innerMagic is not defined"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.