Skip to main content
100%

Cars Report

✓ Published0🌍 Public
EEllen Cubbin
Last edited Feb 7, 2020
Created on Feb 6, 2020
Forked from Hello VizHub

This example displays a text-based report of cars filtered by price, showing the make, model, year, and cost for vehicles under $2,000. The page initially shows a loading message while a simulated asynchronous data fetch runs via a Promise with a two-second delay. The code uses ES6 modules, `JSON.parse` to load hardcoded car data, and the `Promise` API to handle the delayed response. Once loaded, the `generateReport` function filters, formats, and joins the car entries into a single string displayed in an HTML `<pre>` element.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes