Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

2570ad9edcb64123b19eec6aedc65fac

Cars Report

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