Skip to main content
100%

Cars Report

✓ Published0🌍 Public
KKenneth Goh
Last edited Nov 27, 2020
Created on Nov 27, 2020
Forked from HTML Starter

This example displays a text-based report of cars filtered by price, showing each car’s year, make, model, and cost on a large HTML `<pre>` element. It fetches car data asynchronously from a hardcoded JSON array after a two-second delay, then filters vehicles under $2,000 and formats them into a list. The code uses JavaScript Promises via `getCars()`, string template literals in `formatCar`, and the array methods `filter`, `map`, and `join` within `generateReport`, with React not actively used despite being listed in the framework metadata.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes