Fork of Cars Report
This example demonstrates a simple text-based report that filters a list of cars by price and displays formatted entries. The page initially shows “Loading...” and, after a two-second simulated delay, renders a report of cars under $2,000. The code uses JavaScript modules and Promises, with `getCars` returning a hardcoded JSON array of car objects, and `generateReport` filtering and formatting each item via `formatCar`. The final output is written into a `<pre>` element.