Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Viewing a saved revision (read-only)

d83f1fc39c48406e801ca3d9d329b58d

Fork of Cars Report

0 stars0🌍 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.