Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JS modules Learner

Public visualization

Viewing a saved revision (read-only)

3b9f1ade61d64684a328584ec12de925

JS modules Learner

0 stars0🌍 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