🌍 Public
Viewing a saved revision (read-only)
d83f1fc39c48406e801ca3d9d329b58d
Fork of 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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.