Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Zzjutkarma
Last edited Apr 19, 2022
Created on Mar 18, 2022
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes