Skip to main content
100%

Cars Report

✓ Published0🌍 Public
SShafeek Bakhach
Last edited Aug 11, 2019
Created on Aug 11, 2019
Forked from Cars Report

This example displays a single car manufacturer’s name, “Mercedes,” extracted from a JSON array of car objects and rendered in large text on a webpage. It demonstrates how to parse structured data with `JSON.parse`, destructure object properties, and update the DOM via `document.getElementById` and `textContent`. The workflow separates fetching data (`getCars.js`), formatting entries (`formatCar.js`), and generating a filtered report (`generateReport.js`), though the visible page only shows the first car’s make. The code relies on ES6 modules and a Rollup-bundled script.

AI-generated description

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

MIT Licensed

Similar vizzes