Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Hhfuio
Last edited Mar 22, 2020
Created on Mar 22, 2020
Forked from Cars Report

This example demonstrates a text-based car report generated from static JSON data. A list of five used cars, including year, make, model, and price, is loaded asynchronously via a Promise in `getCars.js`. The `generateReport.js` module filters cars under a $2,000 price threshold and formats each entry with `formatCar.js`, applying template literals. Output is rendered into a `<pre>` element in `index.html`. The code uses native JavaScript features such as array methods `.filter()` and `.map()`, destructuring, and ES6 module imports, with no external visualization libraries.

AI-generated description

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

MIT Licensed

Similar vizzes