Here's what I thought (without cheating) Correct me if I'm wrong A is executed setTimeout's callback function pushed to call stack Promise resolve thens' pushed to call stack E is executed First then executed (C) Second then executed (D) setTimeout Callback executed (B) AECDB
Here's what I thought (without cheating) Correct me if I'm wrong A is executed setTimeout's callback function pushed to call stack Promise resolve thens' pushed to call stack E is executed First then executed (C) Second then executed (D) setTimeout Callback executed (B) AECDB
@MaxProgramming1 Interesting sequence. The event loop prioritizes promises, then the callback queue. Makes sense.