Event loop — mechanism that handles async operations in Node.js.
How it works:
Event Loop Phases:
1. timers (setTimeout, setInterval)
2. pending callbacks (I/O callbacks)
3. idle, prepare (internal)
4. poll (I/O polling)
5. check (setImmediate)
6. close callbacks (socket.on('close'))
Key points: