Skip to main content
100%

Cars Report

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

This example displays a list of five used cars, showing only those priced under $2,000 as formatted text lines. The page initially shows a “Loading...” message while a Promise from `getCars` resolves after a two-second timeout. Once resolved, `generateReport` filters the parsed JSON data and uses `formatCar` to build each line with year, make, model, and price. The result is rendered into a `<pre>` element, styled with Ubuntu font and a light blue background.

AI-generated description

a file showing a cars report.

MIT Licensed

Similar vizzes