Skip to main content
100%

Cars Report

✓ Published0🌍 Public
XXinya Gao
Last edited Dec 27, 2020
Created on Dec 27, 2020
Forked from HTML Starter

This example displays a list of cars filtered by price, showing each vehicle’s year, make, model, and cost as plain text. The page initially shows “Loading...” while a simulated asynchronous call to `getCars()` resolves after two seconds. The `generateReport` function filters the JSON data for cars under $2,000 and formats each entry using `formatCar`, which constructs the output string. The result is written into a `<pre>` element via the DOM API, with styling applied through inline CSS in the HTML file.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes