-
-
Save sdumitriu/6b91c0dba1d7ba3875065db2d449d2b7 to your computer and use it in GitHub Desktop.
A JavaScript question (hard mode)
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
// What does the following code return? Why? | |
var a = 1, | |
b = function a(x) { | |
x && a(--x); | |
outcome += ' tick'; | |
}; | |
var outcome = a; | |
b(2); | |
outcome; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment