Skip to main content
100%

Cars Report

✓ Published0🌍 Public
AAnh Nguyen Hoang
Last edited Sep 9, 2020
Created on Sep 9, 2020
Forked from 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 description

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

MIT Licensed

Similar vizzes