🌍 Public
Viewing a saved revision (read-only)
1dc2e67daa524d4fa1b6892b7ad7c2b7
Cars Report
This example demonstrates loading a set of car records from an embedded JSON array, filtering those priced under $2,000, and displaying a formatted text report. It relies on JavaScript ES modules, with `getCars.js` returning a Promise that resolves after a simulated two-second delay, while `generateReport.js` uses `Array.filter`, `Array.map`, and `Array.join` to transform the data. The rendered output appears in an HTML `<pre>` element, initially showing a "Loading..." message before the final list is inserted.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.