Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Ssetom
Last edited Dec 12, 2019
Created on Dec 12, 2019
Forked from Cars Report

This example demonstrates a text-based report generated from car data, filtering vehicles under a price threshold and formatting each entry with year, make, model, and price. It uses a JavaScript promise—`getCars()`—to simulate asynchronous loading with a two-second delay, then displays a loading message before rendering the final report in the browser via `textContent`. The modular approach imports `formatCar` and `generateReport` to handle data transformation, relying on `JSON.parse` for the inline car dataset.

AI-generated description

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

MIT Licensed

Similar vizzes