Skip to content

Instantly share code, notes, and snippets.

@dpjayasekara
Forked from deepal/node-11-1.js
Created October 14, 2019 21:11
Show Gist options
  • Save dpjayasekara/0bd76533b8797a97805c59dcb224b44f to your computer and use it in GitHub Desktop.
Save dpjayasekara/0bd76533b8797a97805c59dcb224b44f 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