🌍 Public
Viewing a saved revision (read-only)
1ad173c190114c6888bfa608394a52eb
Cars Report
This example displays a plain-text car report generated from an in-code JSON array of five vehicles. It shows a single car entry, specifically the first object, containing the year, make, model, and price, rendered in a large `<pre>` element. The code uses `JSON.parse` to convert the embedded `carsJSON` string into an array, then assigns the first car object directly to the message element via `document.getElementById().textContent`. No D3 or visualization library is used; the output relies solely on DOM manipulation to present the data statically.
AI-generated description