Skip to main content
100%

JS modules Learner

✓ Published0🌍 Public
KKamalabot
Last edited Jul 9, 2022
Created on Jul 9, 2022
Forked from HTML Starter

This example demonstrates the JavaScript module system for importing and exporting variables between files. It shows how to share constants (`aThing`, `someThing`) across script files and how to load D3’s `select` API. The page renders a static HTML message with an inline `<style>` rule for large centered text, then logs imported values and the D3 `select` object to the console. It uses `d3.v7` from a CDN and relies on the browser’s native ES module support.

AI-generated description

Learning to use the JS modules for exporting and importing variables between files

MIT Licensed

Similar vizzes