Skip to main content
100%

Cars Report 2

✓ Published0🌍 Public
GGarrett Haas
Last edited Jun 23, 2020
Created on Jun 23, 2020
Forked from HTML Starter

This example displays a filtered list of cars, showing only those priced under $2,000 in a large text format. The React-based code uses a `generateReport` function that filters the `cars` array and maps each car through `formatCar` to produce a formatted string. The resulting message is inserted into the DOM via `document.getElementById` and assigned to `textContent`. The data originates from a static JSON array embedded in the `cars.js` module, and the rendering occurs within a plain HTML `<pre>` element.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes