🌍 Public
Viewing a saved revision (read-only)
293b1ed38d304669b1e1fefc68f90d43
Cars Report
This example shows a simple text-based report of used cars, displaying each car’s year, make, model, and price after filtering for models under a given maximum. It uses JavaScript objects, arrays, and modules: `getCars` parses an embedded JSON array, `formatCar` formats each entry, and `generateReport` filters and maps the data. The report is rendered into a `<pre>` element using standard DOM `textContent`, with a loading message shown before the promise resolves.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.