🌍 Public
Viewing a saved revision (read-only)
73d87daa1dad43c79e9be64f929e6407
Cars Report
The Cars Report displays a filtered list of used cars, showing each vehicle's year, make, model, and price. It loads car data from an embedded JSON array via a Promise returned by `getCars()`, simulating a two-second delay. The `generateReport()` function filters cars below a maximum price of $2,000 and formats each entry using the `formatCar()` helper. Results appear in a `<pre>` element with a "Loading..." placeholder, updated through plain DOM textContent manipulation after the asynchronous data resolves.
AI-generated descriptionReact Starter code.