🌍 Public
Viewing a saved revision (read-only)
dac51ee83e614936b62a1f20dfae0194
Eloquent JS: Chapter 11
This example visualizes asynchronous programming concepts from Chapter 11 of Eloquent JavaScript using D3 v5. It renders a heading and an SVG canvas that uses d3.forceSimulation to demonstrate how JavaScript handles concurrent tasks. The visualization shows tick intervals with setTimeout, promise resolution ordering, and blocking code execution timing, all represented through animated SVG elements. The code displays timing diagrams showing when setTimeout callbacks and Promise.then handlers execute relative to synchronous code, using D3's force layout to arrange nodes and animated transitions to illustrate event loop behavior over time.
AI-generated description