Skip to content

Instantly share code, notes, and snippets.

@evillemez
Created March 29, 2014 18:22
Show Gist options
  • Save evillemez/9859465 to your computer and use it in GitHub Desktop.
Save evillemez/9859465 to your computer and use it in GitHub Desktop.
setTimeout(function() {
console.log("2 seconds");
}, 2000);
setTimeout(function() {
console.log("now??");
}, 0);
console.log("now");
@RKdev
Copy link

RKdev commented Mar 29, 2014

Or does the callback function to setTimeout only get pushed onto and popped from the stack when setTimeout is called?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment