🌍 Public
Viewing a saved revision (read-only)
b0ca0a8b5eeb47d1b2c84551c32d38ec
Report
This example displays the year of a specific car from a static dataset, rendering the value as large text in a web page. The visualization uses React framework conventions with a plain JavaScript file that imports car data from a separate module containing an array of JSON objects. The code accesses the second car’s year property and updates the DOM by setting the text content of a pre-selected HTML element using `document.getElementById`. The rendering approach relies on basic DOM manipulation without any charting or visualization libraries.
AI-generated descriptionReact Starter code.