Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Uumihito
Last edited Apr 17, 2020
Created on Apr 15, 2020
Forked from Cars Report

This example demonstrates the fundamentals of importing and rendering JavaScript data structures, showing a single car record as plain text on a webpage. The code defines an array of car objects in `cars.js`, exports them using ES module syntax, and imports them into `index.js` to access the first entry. It uses the `document.getElementById` and `textContent` APIs to display the car object in a predefined `<pre>` element. The data comes from a static JSON array, and the project is bundled with Rollup.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes