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 how to generate a text-based car report from structured data. It uses JavaScript objects and arrays, with a `getCars` function that parses a JSON string to return an array of car objects. The `generateReport` module filters cars by price and formats each entry using the `formatCar` function, then displays the result in an HTML `<pre>` element via `textContent`. The code relies on ES modules and a Promise-based `getCars` call to load the data asynchronously.

AI-generated description

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

MIT Licensed

Similar vizzes