Skip to main content
100%

JS Practice

✓ Published0🌍 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.

MIT Licensed

Similar vizzes