Fork of Carjgvg`s Report
✓ Published0🌍 Public
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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed