Cars Report
✓ Published1🌍 Public
This example displays a text-based report of cars filtered by price, showing each car’s year, make, model, and price on separate lines. It uses React, but the core logic runs through JavaScript functions in separate modules: `generateReport` filters the imported `cars` array (parsed from JSON) by a maximum price and joins formatted strings via `formatCar`. The HTML page has a styled `<pre>` element that receives the generated message through `document.getElementById` and sets its `textContent`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed