Skip to content

Instantly share code, notes, and snippets.

@deepal
Last active October 14, 2019 21:11
Show Gist options
  • Save deepal/60d50579c71484e2708e847513b0822b to your computer and use it in GitHub Desktop.
Save deepal/60d50579c71484e2708e847513b0822b to your computer and use it in GitHub Desktop.
setTimeout(() => console.log('timeout1'));
setTimeout(() => {
console.log('timeout2')
Promise.resolve().then(() => console.log('promise resolve'))
});
setTimeout(() => console.log('timeout3'));
setTimeout(() => console.log('timeout4'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment