🌍 Public
Viewing a saved revision (read-only)
2f5d1b712d0d4490988fb0c74e9ac2d3
Cars Report
This example demonstrates how to generate a text-based car report, filtering five car records by price and formatting them into a readable list. It shows the process of loading asynchronous data, then applying a filter and transformation pipeline. The code uses JavaScript modules (`import`/`export`) and native array methods like `filter` and `map`, alongside a JSON data source parsed with `JSON.parse`. A Promise with `setTimeout` simulates fetching, while `document.getElementById` updates the displayed message in the HTML.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.