Fork of Cars Report
This example shows a filtered list of used cars priced under $2,000, displayed as plain text in a large HTML element. It initially shows a "Loading..." message, then asynchronously fetches an in-memory JSON array of five car records, filters them by price, and formats each match as a line with year, make, model, and price. The code uses JavaScript modules (`getCars`, `formatCar`, `generateReport`) with a `Promise` and `setTimeout` to mimic a delayed data source, and renders the result via the DOM’s `textContent`.