Skip to main content
100%

Fork of Carjgvg`s Report

✓ Published0🌍 Public
FFabio Tejedor
Last edited Jan 27, 2021
Created on Jan 27, 2021
Forked from Cars Report

This example demonstrates a JavaScript car report generator that filters a list of cars by price and formats the results into a text display. It uses a mock data source defined in a JSON string within `getCars.js`, which is parsed and returned via a Promise with a simulated 2-second delay. The report is built with `generateReport.js`, which filters car objects below a maximum price and maps them through `formatCar.js` to produce formatted strings. The page’s `<pre>` element initially shows “Loading...” and then updates with the final report using the `getCars()` and `generateReport()` functions.

AI-generated description

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

MIT Licensed

Similar vizzes