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 demonstrates a text-based report of used cars, listing models under a $2,000 price threshold in a formatted, multi-line output. It shows how JavaScript modules, promises, and array methods like `filter` and `map` work together. The code uses `JSON.parse` to load a static dataset and `setTimeout` inside `getCars` to simulate asynchronous data fetching. The `generateReport` function relies on a template literal for formatting, while `index.js` updates the DOM via `textContent` after loading.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed