🌍 Public
Viewing a saved revision (read-only)
0636fd667a0f49adb1d452d4a0c5e0fc
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.