Skip to main content
100%

Car Report

✓ Published0🌍 Public
JJaloYang
Last edited Jan 21, 2020
Created on Jan 21, 2020
Forked from Car Report

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 description

React Starter code.

MIT Licensed

Similar vizzes