🌍 Public
Viewing a saved revision (read-only)
657bf0ac26114201be92514294a5b6da
Cars Report
This example displays a text-based report of cars with a price below a specified threshold, formatted as a multi-line string in a large monospace typeface. It uses vanilla JavaScript modules, including `Array.prototype.filter` and `Array.prototype.map`, with the `formatCar` function to construct each line, and `Array.prototype.join` to combine them. The data originates from an inline JSON array of car objects, and the final message is rendered via the DOM API `document.getElementById` and `textContent`.
AI-generated descriptionReplicating the Cars Report from Curran's D3 Video:
- Creates the report from the cars JSON data