🌍 Public
Viewing a saved revision (read-only)
b445d5d93e95473fa6ee6fe4ffbde65b
JS Practice
This example demonstrates how to display a single data value on a webpage using JavaScript. It loads a hardcoded array of car objects from `cars.js`, parses it with `JSON.parse`, and retrieves the `make` property of the first car. The result is inserted into the page’s DOM via `document.getElementById` and assigned to `textContent`. The page uses a large pre-styled element with a custom Ubuntu font and a dark blue background from `styles.css`.
AI-generated descriptionAn example showing the capabilities of VizHub.