Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
TToni Patama
Last edited Jun 6, 2023
Created on Jun 6, 2023
Forked from Cars Report

This example demonstrates a simple report generator that filters and formats car listings by price. It uses JavaScript modules, arrays, objects, and Promises to load data and produce a text-based message. The code relies on `getCars()` to return a hardcoded JSON dataset after a simulated delay, then `generateReport()` filters cars under $2,500 and formats each entry with `formatCar`, which outputs year, make, model, and price. The final report appears inside an HTML `<pre>` element.

AI-generated description

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

MIT Licensed

Similar vizzes