Fork of HTML Starter
✓ Published0🌍 Public
This example demonstrates how to display a data value from a JSON array on a web page using vanilla JavaScript and HTML. It imports a parsed dataset of car objects from `cars.js` via ECMAScript modules, then writes the first car’s year (1997) into a `<pre>` element’s text content using `document.getElementById`. The page uses no external libraries, relying on the browser’s native DOM API and JSON parsing. The HTML starter structure includes a script tag for `bundle.js`, which bundles the imported module for execution.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed