🌍 Public
Viewing a saved revision (read-only)
mJ50jux6gPqllBcrJeJIF
Fork of Cars Report
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.
MIT Licensed