Skip to main content
100%

JS in HTML

✓ Published0🌍 Public
EEd Smale
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from HTML Starter

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
MIT Licensed

Similar vizzes