Skip to main content
100%

Cars Report

✓ Published1🌍 Public
YYifei Wang
Last edited Apr 22, 2020
Created on Apr 21, 2020
Forked from Cars Report

This example displays a text-based report of used cars, showing each vehicle’s year, make, model, and price for models under $2,000. It begins with a “Loading...” message and then renders the filtered results in a large <pre> element after a simulated two-second delay. The code uses JavaScript promises via `getCars`, a `generateReport` function that filters and maps car data, and the `formatCar` helper to compose each line. Data comes from an inline JSON array containing five car records.

AI-generated description

An example

MIT Licensed

Similar vizzes