Cars Report
✓ Published0🌍 Public
This example demonstrates a text-based car report generated asynchronously from hard-coded JSON data. It parses five car records with year, make, model, and price, filters them by a price threshold, formats each matching entry, and displays the result in an HTML `<pre>` element. The code uses ES6 modules, `JSON.parse`, `Promise`, `setTimeout`, and string template literals. A loading message appears initially, followed by the report after a two-second delay, implemented via `getCars` and `generateReport` functions.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed