Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Viewing a saved revision (read-only)

44464175e2e045cdb6254265d97f16dd

Fork of Cars Report

0 stars0🌍 Public
Llerik03
Last edited Nov 25, 2022
Created on Nov 25, 2022
Forked from Cars Report

This example demonstrates a small asynchronous report generator that filters a hardcoded list of used cars by price and formats the results into a text display. It uses JavaScript Promises to simulate a two-second data fetch via `getCars`, then applies array methods like `filter` and `map`, and a custom `formatCar` function to produce a readable list. The page updates a `<pre>` element’s text content, initially showing “Loading…” until the data resolves. The code relies on ES modules (`import`/`export`) and JSON parsing to structure the data flow.

AI-generated description

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