Cars Report
✓ Published0🌍 Public
This example shows a text-based report of used cars filtered by price. It displays a list of car descriptions, each formatted as the year, make, model, and price, containing only vehicles priced below $2000. The report is generated from a static JSON array of five car objects defined in `cars.js`. The code uses a React starter template, though rendering is handled directly via the DOM’s `document.getElementById` and `textContent`. The `generateReport` function filters and maps the data using JavaScript’s array methods, then joins the strings with newlines before displaying them in a `<pre>` element.
AI-generated descriptionReact Starter code.
MIT Licensed