Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log("Sycnhronous 1");
- setTimeout(()=> console.log("Timeout 2"), 0);
- Promise.resolve().then(()=> console.log("Promise 3"));
- console.log("Synchronous 4")
- // OUTPUT
- // Sycnhronous 1
- // Sycnhronous 4
- // Promise 3
- // Timeout 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement