Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

c7edfa6cf8f24c31922b0cd6dfd97887

Cars Report

0 stars0🌍 Public
Kkkwyoung
Last edited Aug 4, 2020
Created on Jul 29, 2020
Forked from Cars Report

This example displays a text-based report of used cars, filtered to show only those priced below $2,000 and formatted as a list of year, make, model, and price. The page initially shows "Loading..." while it retrieves the car data, then replaces it with the report. It uses JavaScript's `Promise` and `setTimeout` in `getCars` to simulate a delayed data fetch, and `filter`, `map`, and `join` in `generateReport` to process the data. The HTML `<pre>` element renders the formatted output.

AI-generated description

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