Writing

Writing to understand how things work

Microtasks: Why Promises Run First

21 April 2026

Why do Promises always run before setTimeout? This article reveals microtasks as mandatory continuations that must run before JavaScript moves on.

Macrotasks: What a Task Actually Is

15 April 2026

If nothing can interrupt JavaScript, when does anything else run? This article reframes tasks as entry points into execution, not chunks of work.