What is the output of synchronous code, a resolved promise, and setTimeout with zero delay?
The synchronous statements run first. A promise reaction runs as a microtask after the current task completes, before the next eligible timer task. A zero-delay timer does not mean immediate execution...