Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Wwinniepooh520
Last edited Oct 1, 2020
Created on Oct 1, 2020
Forked from Cars Report

This example displays a text-based car report, filtering a list of vehicles by price and formatting each entry as “year make model: $price”. It begins with a “Loading...” message before asynchronously retrieving car data via a Promise-returning `getCars` function, then uses `generateReport` with `.filter` and `.map` to process the cars. The JavaScript modules `formatCar` and `generateReport` demonstrate object destructuring, array methods, and modular imports, with `JSON.parse` handling the embedded data and DOM `textContent` updating the display.

AI-generated description

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

MIT Licensed

Similar vizzes