🌍 Public
Viewing a saved revision (read-only)
ccf4b8028ee34ed781ec671daa9f1dc9
Cars Report
This example displays a text-based report of cars priced under $2,000 from a small embedded JSON dataset. It shows each filtered vehicle as a formatted line containing its year, make, model, and price. The code uses the native JavaScript `JSON.parse` to read the data, then applies `Array.filter` and `Array.map` to process the records, and assigns the resulting string to a DOM element’s `textContent` property within a React starter project.
AI-generated descriptionReact Starter code.