🌍 Public
Viewing a saved revision (read-only)
7bbf246b0f334ce79c2db47afc65a35d
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.