Matt Might once said:
My teaching assumes that to understand is to implement.
So to understand better how JavaScript's event loop works, I've decided to implement a simplified version. I'm only going to focus on timers for now; I may add asynchronous I/O later.