Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Hhawjelly
Last edited Jul 17, 2020
Created on Jul 17, 2020
Forked from 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 description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes