🌍 Public
Viewing a saved revision (read-only)
48dfea3d434442d79077a8a95260a839
Cars Report
This example demonstrates a minimal web page that displays a static text message, "mmm," derived from a JavaScript module. It shows how to import an array of car objects (containing year, make, model, and price) from a separate `cars.js` file using ES6 `export` and `import` syntax. The code parses JSON data with `JSON.parse` and updates the page’s DOM via `document.getElementById` and the `textContent` property. No visualization library or rendering is used; the output is purely textual within an HTML `<pre>` element.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.