Cars Report
✓ Published0🌍 Public
This example displays a text-based car report, filtering a list of vehicles by price and formatting each entry as “year make model: $price”. It begins with a “Loading...” message before asynchronously retrieving car data via a Promise-returning `getCars` function, then uses `generateReport` with `.filter` and `.map` to process the cars. The JavaScript modules `formatCar` and `generateReport` demonstrate object destructuring, array methods, and modular imports, with `JSON.parse` handling the embedded data and DOM `textContent` updating the display.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed