Games Node.js Loop Quest Alarm clocks
Shortest alarm first
Two timers written in one order, with different delays.
setTimeout(() => console.log('slow'), 100);setTimeout(() => console.log('fast'), 10);console.log('sync');1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…
- 3…