🌍 Public
Viewing a saved revision (read-only)
d4e9d65d0df04221a37bed03fbe2ee3c
Cars Report
This example displays a text-based report of cars priced under $2,000. The report is generated from a hard-coded JSON array of car objects, which is fetched asynchronously via a custom Promise. The `generateReport` function filters the array by price and uses `formatCar` to produce a formatted string for each vehicle. The final report is rendered inside an HTML `<pre>` element, with React Starter code present in the files.
AI-generated descriptionReact Starter code.