Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JS Practice

Public visualization

Viewing a saved revision (read-only)

b445d5d93e95473fa6ee6fe4ffbde65b

JS Practice

0 stars0🌍 Public
CConnor Bailey
Last edited Dec 5, 2019
Created on Dec 5, 2019
Forked from 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 description

An example showing the capabilities of VizHub.