Marcus Car Report
This example demonstrates a simple text-based report that filters a local car database by year and displays the results in the browser. It shows how JavaScript modules, Promises, and DOM manipulation can create a dynamic, data-driven view. The code uses `getCars()` to asynchronously load a hardcoded JSON array of cars via a simulated 2-second delay, then `generateCarReport(cars, 1998)` filters cars with a year below 1998 and formats each entry using `formatCars`, which outputs a string like `1996 Toyota: $2800`. The final report is injected into a `<pre>` element styled with CSS, while the page initially shows "Working.." during the wait. The styling uses the Ubuntu font from Google Fonts and a dark blue background.
AI-generated descriptionMarcus' first Javascript module