Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
Rruubi0807@gmail.com
Last edited Sep 21, 2023
Created on Sep 16, 2023
Forked from Hello VizHub

This example demonstrates a text-based report that lists used cars under a $2,000 price threshold. It fetches car data asynchronously via a Promise in `getCars` and formats entries with the `formatCar` function. The `generateReport` module filters and maps the data, and the result is displayed in a `<pre>` element by updating its `textContent`. The code uses ES module imports and exports, `setTimeout` for a simulated delay, and `JSON.parse` to parse inline car data.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes