🌍 Public
Viewing a saved revision (read-only)
f5952df1b36e4894b2b3eaa54127089a
Cars Report
This example demonstrates a simple text-based report for a car inventory, displaying a car’s make in large type on a web page. Working from an embedded JSON array of car objects, it uses a JavaScript module (`cars.js`) to parse the data and a separate function (`generateReport`) to filter cars under a given price and format each entry. The page’s content is updated via the Document Object Model’s `textContent` property, with the code bundled using Rollup for execution in the browser.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.