🌍 Public
Viewing a saved revision (read-only)
2a2c2f0c5688468785a1e38b718f00e9
Cars Report
This example displays a text-based report of cars priced under $2,000, listing each vehicle’s year, make, model, and price. It begins with a “Loading…” message while fetching data via a simulated asynchronous `getCars()` promise, then uses `generateReport()` to filter and format the JSON car list with `formatCar()`. The report is rendered into a `<pre>` element using plain DOM `textContent` updates, built with React and vanilla JavaScript.
AI-generated descriptionReact Starter code. fdfasf