JavaScript labs

Interactive JavaScript Labs

JavaScript's runtime model — a single call stack, Web APIs and two kinds of queues — explains most of the language's surprising behavior. These labs run your code through a visual event loop so you can see exactly when each callback executes.

1 free interactive lab — JS Event Loop Visualizer. Each one has an easy-to-hard set of examples, a written explanation and a FAQ, and runs entirely in your browser.

More lab topics