Fri, Sep 4

Daily Challenge

One question per day, deterministic by local date. Read it, think it through, mark it complete to extend your streak.

javascript · easy

What is Node.js and how does its event loop differ from the browser's?

Node.js is a JS runtime built on V8 that runs JS outside the browser, using libuv for async I/O. Its event loop has distinct phases — timers, pending callbacks, poll, check (setImmediate), close — and between every phase it drains microtasks (Promises) and process.nextTick (which runs even before Promises). Same single-threaded model, different phase structure than the browser.

Open question