Skip to main content
100%

Cars Report

✓ Published1🌍 Public
GGabrz
Last edited Mar 25, 2020
Created on Mar 24, 2020
Forked from React Starter

This example presents a car report, displaying a list of vehicles filtered by price. The page initially shows a loading message, then renders each car’s year, make, model, and price as plain text. The data comes from a hardcoded JSON array and is loaded asynchronously through a JavaScript `Promise` with a simulated delay. The core logic uses `generateReport` to filter cars below a price threshold and `formatCar` to create the display string, while the HTML `<pre>` element presents the final output. The report is updated using the DOM API `getElementById` and `textContent`.

AI-generated description

Data Visualization with D3 course; Cars Report

MIT Licensed

Similar vizzes