Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Jjugsomilk
Last edited Apr 21, 2020
Created on Apr 20, 2020
Forked from React Starter

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 description

React Starter code.

MIT Licensed

Similar vizzes