🌍 Public
Viewing a saved revision (read-only)
1e8faf0b7dd84b42b218268a5b28e1ba
JS in HTML
This example demonstrates how JavaScript code can be integrated directly into an HTML page using D3 v7. It defines three modules—`index.js`, `something.js`, and `thing.js`—that import from each other using ES6 syntax. The `index.html` file loads the D3 library from a CDN and displays a simple “Hello HTML” message styled with CSS. The JavaScript modules log text and the D3 `select` function to the console, showcasing modular code organization alongside standard HTML rendering.
AI-generated description