Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ddmiljkov
Last edited Dec 27, 2021
Created on Dec 14, 2021
Forked from Cars Report

The visualization shows a text-based report of used cars filtered by price, listing each vehicle as a line with year, make, model, and price. It demonstrates modular JavaScript organization: the cars dataset is parsed from an embedded JSON string in `cars.js`, while `formatCars.js` and `generateReport.js` handle per-car formatting and filtering, respectively. The main `index.js` calls `generateReport(cars, 3000)` to select cars under $3,000 and writes the result into a `<pre>` element using the DOM API. The example relies on native ES modules, destructuring, and array methods like `filter` and `map`.

AI-generated description

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

MIT Licensed

Similar vizzes