Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Jjfgiraldo3421
Last edited Sep 28, 2019
Created on Sep 28, 2019
Forked from Cars Report

The Cars Report example shows a text-based listing of used cars, filtered to display only vehicles priced below $1,900. It demonstrates asynchronous data loading and JavaScript module composition. The code uses `getCars()` to parse a hardcoded JSON array after a simulated two-second delay, then `generateReport(cars, 1900)` filters and formats each car with `formatCar`. The final report, generated via `Array.filter` and `Array.map`, is displayed in an HTML `<pre>` element. The example relies on Promises and string interpolation rather than charting libraries.

AI-generated description

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

MIT Licensed

Similar vizzes