Skip to main content
100%

Cars Report

✓ Published1🌍 Public
AAnthony-coding
Last edited Nov 17, 2019
Created on Nov 14, 2019
Forked from Cars Report

This example displays a car report by filtering a list of cars to include only those priced under $2,000, formatting each entry with the year, make, model, and price, and presenting the results as plain text. The page initially shows a “Loading...” message while `getCars` fetches the data from an embedded JSON array after a simulated two-second delay. The code uses JavaScript promises, array methods like `filter` and `map`, and template literals within the `formatCar` and `generateReport` functions, while the HTML and CSS style the output with a large white monospace font on a light blue background.

AI-generated description

a file showing a cars report.

MIT Licensed

Similar vizzes