Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

b2e18d0ef85941419082cc7c29ca732d

Cars Report

0 stars0🌍 Public
AAnkit
Last edited Feb 1, 2020
Created on Feb 1, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of car listings, showing how to load data asynchronously and generate a formatted summary. It displays five cars with their year, make, model, and price, filtered to include only those under $5,000. The code uses JavaScript ES6 modules, `Promise` with `setTimeout` to simulate a delayed API call via `getCars`, and maps over filtered data with `formatCar` and `generateReport` to produce the output. The rendered result appears in a `<pre>` element as plain text.

AI-generated description

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