Skip to main content
100%

JS in HTML

✓ Published0🌍 Public
JJavan Friedel
Last edited Jun 16, 2022
Created on Jun 16, 2022
Forked from HTML Starter

This example demonstrates how JavaScript can be imported and executed within an HTML document, with D3.js loaded via a CDN. The HTML file includes an empty body and a stylesheet, while the JavaScript imports `select` from D3 and logs it to the console, alongside a separate `script.js` that logs 'Hello'. A custom module `something.js` exports a string, showing ES module imports in action. The example highlights module structure and console output rather than visual rendering, using `d3.select` implicitly for demonstration.

AI-generated description
MIT Licensed

Similar vizzes