DiscoveryVIPAll guides

JAVASCRIPT RUNTIME LAB

JavaScript Async & Event Loop Visual Lab

Predict the four console letters. Run the script, then step through recorded timer and promise events to explain what ran first.

Four letters, three phases

Ctrl or Command + Enter runs code. Worker execution stops after three seconds.

Explain code and reveal hints

Recorded execution

Actual console output

Observed callbacks

Pending wrapped timers

Wrapped microtasks

Full timeline with elapsed timestamps

    Panels reconstruct the recorded wrappers. Promise registration is observable, but the browser’s internal task queues and painting are outside this worker trace.

    Practice asynchronous JavaScript

    Explore promise ordering, request failures, cancellation, and recovery with local examples.

    JavaScript learning path · Interactive guides