Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
TTrey Billing
Last edited Aug 22, 2019
Created on Aug 22, 2019
Forked from Cars Report

This example demonstrates a simple text-based report generated from an array of car objects. It shows how asynchronous data loading and modular JavaScript can dynamically populate a web page. The code uses the `fetch`-like pattern via a custom Promise in `getCars.js`, along with `JSON.parse` to convert raw data. The `generateReport` function filters cars by price and formats each entry using `formatCar` template literals. The page displays “Loading…” initially, then updates the DOM's `textContent` with the filtered list after a simulated two-second delay.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed