Skip to main content
100%

Cars Report

✓ Published0🌍 Public
AAndrewRiceMGW
Last edited Jan 3, 2021
Created on Jan 3, 2021
Forked from HTML Starter

This example demonstrates a data-processing pipeline for a car inventory report. It displays a list of vehicles priced under $2,000, formatted as “year make model: $price” in a large HTML `<pre>` element. The code uses asynchronous JavaScript with a `Promise` and `setTimeout` to simulate a 2-second data fetch from a hardcoded JSON array. The `Array.filter()` and `Array.map()` methods, along with template literals in `formatCar`, generate the report, while `document.getElementById()` updates the page content from “Loading...” to the final output.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes