🌍 Public
Viewing a saved revision (read-only)
bb24372479ad4fd7b3076394e1b85f2f
Cars Report
This example shows a simple text-based report of cars, filtering a list by price and formatting each entry as a line of year, make, model, and price. It loads car data asynchronously via a promise from `getCars.js`, displays a “Loading…” message, then uses `generateReport` to filter cars under $3000 and join them with newlines. The page updates a `<pre>` element using plain DOM `textContent`, with the data embedded as JSON in the source and modules imported via ES6 `import`/`export`.
AI-generated descriptionExample of how to use javascript arrays and modules.