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