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.