Skip to content

Instantly share code, notes, and snippets.

@mitcom
Created October 15, 2019 16:35
Show Gist options
  • Save mitcom/e437867742b71fdf7befbdce656a3013 to your computer and use it in GitHub Desktop.
Save mitcom/e437867742b71fdf7befbdce656a3013 to your computer and use it in GitHub Desktop.
console.log(1);
setTimeout(() => console.log(2), 0);
Promise.resolve().then(() => console.log(3));
console.log(4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment