Skip to main content
100%

JS outside HTML

✓ Published0🌍 Public
ММаксим Грязнов
Last edited Dec 19, 2022
Created on Dec 15, 2022
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes