🌍 Public
Viewing a saved revision (read-only)
6a53ddfd3b2f4f3a92138df8cd24586e
Cars Report
This example displays a text-based car report, filtering a list of cars to show only models priced under $2,900. It demonstrates using JavaScript modules to parse JSON data and generate formatted strings. The code relies on `JSON.parse`, `Array.filter`, `Array.map`, and `Array.join` to process the data, while the `Promise` constructor and `setTimeout` simulate asynchronous data fetching in `getCars.js`. The final report is rendered into an HTML `<pre>` element via the DOM API.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.