Car Report
✓ Published0🌍 Public
This car report displays a filtered list of vehicles from a hardcoded JSON array, showing each car’s year, make, model, and price. It uses React with a simple DOM manipulation, fetching data from `cars.js` via `Cars` import. The `generateReport` function applies `Array.filter` to select cars under a maximum price (4000) and `Array.map` with `formatCar` to produce formatted text lines. The resulting text is rendered inside a `<pre>` element using `innerHTML`.
AI-generated descriptionReact Starter code.
MIT Licensed