🌍 Public
Viewing a saved revision (read-only)
ab1ddf1fc7db4852a1d73765a0f5f129
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.