🌍 Public
Viewing a saved revision (read-only)
c34f52bd965a465db15c9fada19f8254
Cars Report
This example displays a text-based report of used cars, showing each vehicle’s year, make, model, and price for models under $2,000. It begins with a “Loading...” message and then renders the filtered results in a large <pre> element after a simulated two-second delay. The code uses JavaScript promises via `getCars`, a `generateReport` function that filters and maps car data, and the `formatCar` helper to compose each line. Data comes from an inline JSON array containing five car records.
AI-generated descriptionAn example