Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bi's Truck Report

Public visualization

Bi's Truck Report

0 stars0🌍 Public
EEunbi Cho
Last edited Mar 31, 2026
Created on Mar 25, 2026
Forked from React & D3 Starter

This example shows a simple text-based report that filters a list of cars by price and displays each car’s year, make, model, and cost. It demonstrates JavaScript fundamentals, including arrays, objects, promises, and modular imports. The code uses `getCars` to simulate a two-second async fetch of hardcoded JSON data, then `generateReport` filters entries under $2000 and maps each through `formatCar` to build the output. The result is rendered directly into an HTML `<pre>` element via the DOM API.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed