Skip to main content
100%

Cars report

✓ Published0🌍 Public
IIvan
Last edited Feb 10, 2022
Created on Feb 9, 2022
Forked from Hello VizHub

This example displays a text-based report of cars, listing each vehicle’s year, make, model, and price. It initially shows “Loading…” while fetching a hardcoded JSON array via a Promise and a simulated 2-second delay, then filters for cars under $2,000 and formats the lines using custom JavaScript modules. The report is rendered into a `<pre>` element, and the code uses `JSON.parse`, `getCars`, `generateReport`, and `formatCar` functions.

AI-generated description

An examples JavaScript in modules

MIT Licensed

Similar vizzes