Skip to main content
100%

Cars Report

✓ Published0🌍 Public
JJamesChirambo
Last edited Aug 3, 2021
Created on Aug 2, 2021
Forked from HTML Starter

This example demonstrates a report of cars filtered by price, displaying formatted car details as plain text. The page initially shows a "loading..." message, then fetches car data from an embedded JSON array parsed with `JSON.parse`, which is delivered asynchronously through a Promise with a simulated 2-second delay. The core logic, using the `map` and `filter` array methods within a custom `generateReport` function, selects cars below a price threshold and formats each entry into a string like "1998 Honda CRV $1400". The React framework is referenced, but the current implementation relies on vanilla JavaScript to manipulate the DOM via `document.getElementById`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes