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.
Learning library
Requests and actual timing
This local fixture creates a real Response object. It models latency and status without contacting a service. Timings vary with the browser.
AI coach
Save & export
Practice asynchronous JavaScript
Explore promise ordering, request failures, cancellation, and recovery with local examples.
JavaScript learning path · Interactive guides