The join runs before either queued callback has fired.
Acceptance criteria
- 1.#out should show sync then timer.
The join runs before either queued callback has fired.
const order = []; setTimeout(function () { order.push("timer"); }, 0); order.push("sync"); document.querySelector('#out').textContent = order.join(" then ");
Output ready when you are
Press Run to render your code, or Submit to validate your solution.