Cars Report
✓ Published0🌍 Public
This example displays a simple text-based report of used cars priced under $2,000. It filters a static JSON array of car objects and formats each matching entry into a single line showing year, make, model, and price. The code uses React for rendering, while `Array.filter`, `Array.map`, and `Array.join` build the output. The result appears in a `<pre>` element with large font size, updated via the DOM API `document.getElementById().textContent`.
AI-generated descriptionReact Starter code.
MIT Licensed