Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
Ssongchang89
Last edited Dec 4, 2020
Created on Dec 4, 2020
Forked from Cars Report

This example shows a simple text-based report of used cars, filtering a hardcoded JSON dataset to display only vehicles priced under $2,000. It demonstrates asynchronous data loading and modular JavaScript by using a Promise from `getCars()` to simulate a fetch delay, then generating a formatted list with `generateReport()` and `formatCar()`. The rendered output appears as a large monospace text block in the `<pre>` element, with loading text shown before the data resolves. The code relies on `JSON.parse`, `Array.filter`, `Array.map`, and template literals, bundling modules via Rollup.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed