Skip to main content
100%

Cars Report

✓ Published0🌍 Public
FFederico Caruso
Last edited Feb 7, 2022
Created on Feb 7, 2022
Forked from HTML Starter

This example generates a text-based report of cars under a specified price threshold. It shows a filtered list of car models with their year, make, model, and price, rendered in a large font within an HTML `<pre>` element. The code uses plain JavaScript with ES modules, parsing car data from an embedded JSON string and applying a `filter` and `map` pipeline. The `generateReport` function formats each car into a readable line, and `index.js` inserts the result into the DOM via `getElementById` and `textContent`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes