Cars Report
✓ Published1🌍 Public
This example displays a car report by filtering a list of cars to include only those priced under $2,000, formatting each entry with the year, make, model, and price, and presenting the results as plain text. The page initially shows a “Loading...” message while `getCars` fetches the data from an embedded JSON array after a simulated two-second delay. The code uses JavaScript promises, array methods like `filter` and `map`, and template literals within the `formatCar` and `generateReport` functions, while the HTML and CSS style the output with a large white monospace font on a light blue background.
AI-generated descriptiona file showing a cars report.
MIT Licensed