Skip to main content
100%

Cars Report

✓ Published265🌍 Public
CCurran Kelleher
Last edited Dec 26, 2019
Created on Aug 20, 2018
Forked from Loading CSV

This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and price. It uses a static JSON array embedded in `getCars.js`, returning a Promise with a two-second delay to simulate async data loading. The `generateReport` function filters cars under a maximum price and maps them through `formatCar` to produce formatted strings. The DOM is updated via the native `document.getElementById` and `.textContent`, with no external visualization libraries, relying on modern JavaScript modules and template literals.

AI-generated description

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

MIT Licensed

Similar vizzes