🌍 Public
Viewing a saved revision (read-only)
e02319d69141453498f4c626b06e614c
Cars Report
This example demonstrates how to generate a text-based car report by filtering a dataset of car objects by price and formatting the results as a list. It uses JavaScript modules to separate concerns, with `getCars.js` simulating asynchronous data retrieval via a Promise, `formatCar.js` formatting individual car entries, and `generateReport.js` composing the final report. The page displays a loading message initially, then the filtered report is rendered into an HTML `<pre>` element after the simulated delay.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.