🌍 Public
Viewing a saved revision (read-only)
b5a4cc3376044b3fb1acbc3ed0f25595
Cars Report
This example demonstrates a text-based report that filters a hardcoded dataset of five cars by price and displays a formatted list of matching vehicles. The code defines reusable JavaScript modules—`formatCar.js` for formatting car details, `generateReport.js` for filtering and mapping, and `getCars.js` for parsing embedded JSON data—then combines them in `index.js` to update the page’s `<pre>` element. It shows how to structure data manipulation with ES modules and asynchronous promises in a browser context.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.