Cars Report
✓ Published1🌍 Public
This example displays a report of cars with prices under $2,000, formatting each entry as a line like “2000 Honda Accord: $2800”. The page initially shows a “Loading...” message, then fetches the car data from a hardcoded JSON array via the `getCars` promise, filters it using `filter`, and formats the output with `formatCar` and `generateReport`, using JavaScript object destructuring and array methods. The result is rendered into a `<pre>` element styled at a large font size.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed