Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Aadbbdd
Last edited Sep 2, 2021
Created on Sep 1, 2021
Forked from HTML Starter

This visualization displays a text-based report of cars with prices under $2,000, initially showing a “Loading…” message. It fetches a hardcoded JSON array of five car objects using a Promise with a 2-second delay (`getCars`), filters those below the price threshold, and formats each entry via `formatCar` into a "year make model: $price" line. The final output is rendered into a `<pre>` element in HTML using `document.getElementById` and `textContent`, with logic split into `generateReport` and modular imports. It demonstrates asynchronous data handling and string transformation without charting libraries.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes