Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Kkoohong
Last edited Sep 12, 2020
Created on Sep 11, 2020
Forked from React Starter

This example displays a text-based report of cars with a price under $2000, formatted as a list of strings in a pre element. It filters a hard-coded JSON array of car objects using the JavaScript `filter` method and transforms each matching entry into a formatted line with `map`, then joins the lines with newline characters. The report includes year, make, model, and price, and is rendered to the DOM via `document.getElementById` and `textContent`. The React framework is not used for output; the code runs as plain JavaScript.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes