Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

00eae63bfb2e4d1eae8c45c60d76861d

Cars Report

0 stars0🌍 Public
Uumihito
Last edited Apr 28, 2020
Created on Apr 28, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of used car listings, displaying each car’s year, make, model, and price after loading data from a hard-coded JSON string. It shows a loading message while a simulated asynchronous `getCars` function, which returns a Promise with a two-second delay, fetches the data. The report is generated using a `generateReport` module that filters or formats entries, and the page updates dynamically via the DOM API `textContent`. The code uses ES6 modules for `formatCar` and `getCars`, with no external charting libraries.

AI-generated description

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