Created
October 26, 2015 15:14
-
-
Save ianks/cdd3abee9164d5f84017 to your computer and use it in GitHub Desktop.
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
// What will be printed to stdout after executing the following | |
// JavaScript? Describe how you arrived at this answer. | |
var x = 5; | |
setTimeout(function() { | |
console.log(x++); | |
}, 3000); | |
setTimeout(function() { | |
console.log(x + 2); | |
}, 0); | |
x = x + 10; | |
console.log(x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment