Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

f3a967dd03fa4b73af08bded29707512

Cars Report

0 stars0🌍 Public
Ssowbalas
Last edited Jan 16, 2020
Created on Jan 16, 2020
Forked from Cars Report

This example demonstrates a text-based report generator that loads car data asynchronously and filters it by price. The page shows a loading message before displaying a list of vehicles under a $2,000 threshold, formatted with year, make, model, and price. It uses a `getCars` function returning a Promise with a simulated delay, and a `generateReport` module that chains array filters and maps. The `formatCar` utility constructs the output string, while the DOM updates via `textContent` in the main script.

AI-generated description

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