Cars Report
✓ Published0🌍 Public
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.
MIT Licensed