Cars Report
✓ Published0🌍 Public
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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed