Which runs first?

romise.resolve().then(() => console.log("Promise")); setTimeout(() => console.log("Timeout"), 0);


Options
🟢 setTimeout
🔵 Promise
🟠 Random
🔴 Depends on browser
Sign in to vote & see results

Results are hidden until you log in and submit your vote.

Sign in Create account
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details