Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

48477c8be1c34c1f8fb8541f0f07c94a

Cars Report

0 stars1🌍 Public
SSandraPicarra
Last edited Oct 17, 2020
Created on Oct 17, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based car report from a dataset of five vehicles. It shows a loading message while the data is fetched, then displays a formatted list of cars priced under $2,000. The code uses JavaScript objects, arrays, promises, and ES6 modules, including `getCars` with `JSON.parse` and a simulated async fetch via `setTimeout`, as well as `formatCar` and a `generateReport` function that filters and maps car entries.

AI-generated description

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