Cars Report
✓ Published1🌍 Public
This example displays a list of five used cars, showing only those priced under $2,000 as formatted text lines. The page initially shows a “Loading...” message while a Promise from `getCars` resolves after a two-second timeout. Once resolved, `generateReport` filters the parsed JSON data and uses `formatCar` to build each line with year, make, model, and price. The result is rendered into a `<pre>` element, styled with Ubuntu font and a light blue background.
AI-generated descriptiona file showing a cars report.
MIT Licensed