Cars Report
✓ Published0🌍 Public
This example demonstrates a text-based car report generated from a hardcoded JSON array of five vehicles. It shows how to filter cars under a specified price threshold and format each entry as a readable string with year, make, model, and cost. The code uses JavaScript’s `JSON.parse` to load the data, a custom `formatCar` module for string interpolation, and a `filter` and `map` pipeline within `generateReport` to produce the output. The result is rendered into a `<pre>` element via `document.getElementById`.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed