Cars Report
✓ Published1🌍 Public
This example demonstrates a text-based report of used cars, filtering the data to show only vehicles priced under $2,000. The page initially displays a loading message before the report appears as formatted lines, each listing the year, make, model, and price. The code uses JavaScript promises with `getCars` to simulate a delayed data fetch and modules like `formatCar` and `generateReport` to transform a JSON array. The interface relies on DOM manipulation via `getElementById` and `textContent`.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed