Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Eeva-keller
Last edited Jan 22, 2021
Created on Jan 22, 2021
Forked from Hello VizHub

This example demonstrates a text-based report of used cars, filtering a list of vehicles to display only those priced under $2,000. The page initially shows a loading message, then presents the filtered results as formatted lines listing each car’s year, make, model, and price. The code uses JavaScript modules with `export` and `import` statements, JSON parsing via `JSON.parse`, and a Promise-based `setTimeout` to simulate asynchronous data fetching with `getCars`. The report generation relies on `Array.filter`, `Array.map`, and `Array.join` to process the car data.

AI-generated description

An example how to use Javascript objects, arrays and modules.

MIT Licensed

Similar vizzes