Cars Report
✓ Published0🌍 Public
This example demonstrates a text-based car report generated from a JSON array of five used vehicles, filtering by price and formatting each entry as a readable line. It illustrates asynchronous data handling with a `Promise` and `setTimeout` in `getCars.js`, while `generateReport.js` chains `filter`, `map`, and `join` to produce the final output. The page uses a `<pre>` element in `index.html` to display the result, with JavaScript modules (`import`/`export`) orchestrating the logic. The report updates after a simulated two-second delay, showing only cars priced under $2,000.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed