🌍 Public
Viewing a saved revision (read-only)
715ed8d02b354b5eaff648865ee7e256
Cars Report
This example shows a text-based report of cars with prices under a given threshold, displayed as a formatted list in a web page. It demonstrates how JavaScript objects, arrays, and modules work together using ES6 imports and exports. The code parses an inline JSON data source, filters car entries by price, and formats each result like“2012 Nissan Leaf: £1800”. A Promise-based asynchronous function simulates a delayed data fetch, while the DOM is updated via `getElementById` and `textContent`, then the report is generated and rendered in a `<pre>` element.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.