Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
Iii-kc
Last edited Jul 11, 2022
Created on Jul 11, 2022
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, filtering a hard-coded JSON dataset to display only vehicles priced under $3,000. It shows how asynchronous JavaScript handles data loading with a `Promise` and a simulated delay via `setTimeout`. The code organizes logic into ES modules, using `JSON.parse`, array `.filter()` and `.map()`, and a custom `formatCar` function to compose the final output, which is written to the DOM.

AI-generated description

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

MIT Licensed

Similar vizzes