Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log(1);
- setTimeout(() => console.log(2));
- Promise.reject(3).catch(console.log);
- new Promise(resolve => setTimeout(resolve)).then(() => console.log(4));
- Promise.resolve(5).then(console.log);
- console.log(6);
- queueMicrotask(() => console.log(7))
- setTimeout(() => console.log(8),0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement