-
-
Save brandonsueur/5945036057d9a1112bd1835e48c3316f to your computer and use it in GitHub Desktop.
🎉 Test JavaScript
This file contains hidden or 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 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