Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Fork of Cars Report

0 stars0🌍 Public
Bbcarvaj
Last edited Feb 12, 2021
Created on Feb 12, 2021
Forked from Cars Report

This example demonstrates a simple data-reporting workflow that fetches a hard-coded JSON array of car listings and filters them by price. It shows how modular JavaScript functions, including `formatCar` and `generateReport`, process the data to display a text report of vehicles under $2,000 in a large `<pre>` element. The code uses the native `Promise` API with a simulated two-second delay in `getCars`, and relies on `JSON.parse` for data parsing. The page initially shows “Loading...” before the report appears, illustrating asynchronous data handling with plain ES modules.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed