Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

8b20d9efd76344e5b7afa001508ead9b

Cars Report

0 stars0🌍 Public
AAli Shah
Last edited Jan 21, 2020
Created on Jan 21, 2020
Forked from Cars Report

This gallery example demonstrates a simple text-based report generated from a hardcoded JavaScript array of car objects, filtered by price and formatted into a readable list. The page initially displays “Loading…” and then updates with the report after a two-second delay simulated by a Promise returned from `getCars`. The code uses JavaScript array methods `filter`, `map`, and `join`, along with template literals, to construct the output. Data is embedded as JSON and parsed with `JSON.parse`, while the user interface is updated via `document.getElementById` and `textContent`.

AI-generated description

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