🌍 Public
Viewing a saved revision (read-only)
63ee9f5e1b564906a3ad72a199588ec2
JS outside HTML
A minimal HTML page demonstrates the separation of JavaScript logic from markup by importing a constant from an external module and logging it to the console. The example uses D3’s `select` function to highlight how modern JavaScript modules can be combined with D3 in a plain HTML environment. The page loads D3 v7 via a CDN script tag, while the application code imports from `./something.js` using the `import` statement, showcasing a React-free workflow that still leverages D3’s utilities.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.