Skip to main content
100%

Cars Report

✓ Published1🌍 Public
UuwFengyuan
Last edited Jan 23, 2023
Created on Jan 23, 2023
Forked from HTML Starter

This example displays a text report of cars priced under $2,000, fetched asynchronously from a hardcoded JSON array. After a two-second delay, each qualifying car is formatted with its year, make, model, and price on separate lines. The React-free interface uses JavaScript promises via `getCars()` and `formatCar()` utilities, updating the content of an HTML `<pre>` element using `document.getElementById` and `textContent`. The data source is local JSON parsed with `JSON.parse`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes