Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Eloquent JS: Chapter 10

Public visualization

Viewing a saved revision (read-only)

f0ca55a8cae44729aba9c429a8a1a427

Eloquent JS: Chapter 10

0 stars1🌍 Public
Eemberix@gmail.com
Last edited Apr 14, 2021
Created on Apr 14, 2021

This example visualizes the module system from Chapter 10 of Eloquent JavaScript, showing the road network between village locations as a graph. The visualization uses d3.v5 to render an SVG canvas with nodes and edges based on the `roads` array, which defines connections between named places. The code demonstrates modular programming by splitting functionality into separate files, including a `graph` module that exports a `buildGraph` function. It processes road pairs using string splitting and passes them to construct the final `roadGraph` object, highlighting how modular design organizes the data flow.

AI-generated description