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