🌍 Public
Viewing a saved revision (read-only)
d322b0c92e3f477e94cd1834fe141643
Cars Report
This example displays a list of cars filtered by price, showing each vehicle’s year, make, model, and cost as plain text. It fetches demo data from a local JSON array via a simulated asynchronous `getCars` promise, then applies a filtering and formatting pipeline using `generateReport` and `formatCar`. The React-based view updates a DOM element directly with `document.getElementById`, replacing an initial “Loading…” message with the final report.
AI-generated descriptionAn example tutorial of how to use Javascript objects, arrays and modules.