Cars Report
✓ Published0🌍 Public
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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed