Car Report
✓ Published0🌍 Public
This example shows a text-based car report generated from a small dataset of five vehicles. It displays cars under a $2,000 price threshold as formatted strings in a large HTML <pre> element. The React starter code uses the native JavaScript `JSON.parse` method to load car data, then applies `filter` and `map` through the `generateReport` function, which formats each entry with the `formatCar` helper. The result is rendered by directly setting the `textContent` of the message element.
AI-generated descriptionReact Starter code.
MIT Licensed