🌍 Public
Viewing a saved revision (read-only)
51f8d66effc845b1ab9ee115b200ab0c
Cars Report
This example demonstrates how to load and display a single data point from a JavaScript array of car objects. It shows the make of the first car in the dataset, parsed from an embedded JSON string using `JSON.parse`, and renders that value into an HTML `<pre>` element via `document.getElementById` and `textContent`. The visualization relies on a simple data structure—a static `carsJSON` array with fields like year, make, model, and price—and ES module imports to access the data. The code does not include any charting or rendering library, focusing instead on basic DOM manipulation.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.