Cars Report
✓ Published265🌍 Public
This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and price. It uses a static JSON array embedded in `getCars.js`, returning a Promise with a two-second delay to simulate async data loading. The `generateReport` function filters cars under a maximum price and maps them through `formatCar` to produce formatted strings. The DOM is updated via the native `document.getElementById` and `.textContent`, with no external visualization libraries, relying on modern JavaScript modules and template literals.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed