Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Car Report

Public visualization

Car Report

0 stars1🌍 Public
JJaloYang
Last edited Jan 21, 2020
Created on Jan 20, 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.

Comments

Sign in to join the discussion.

MIT Licensed