Cars Report
✓ Published0🌍 Public
This visualization displays a plain-text report of cars priced under $2,000, listing each vehicle’s year, make, model, and price on separate lines. It filters an inline JSON array of car objects, then maps each entry through a `formatCar` function and joins the results with newline characters. The final message is rendered as text content inside a `<pre>` element using the DOM API `document.getElementById`. The code uses native JavaScript methods `JSON.parse`, `filter`, `map`, and `join` to process the static dataset embedded directly in the script.
AI-generated descriptionMIT Licensed