Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars report

Public visualization

Viewing a saved revision (read-only)

5f1dd1bcf6044e3c98ab26a6e010057f

Cars report

0 stars0🌍 Public
Kknguyengithub
Last edited Sep 17, 2021
Created on Sep 17, 2021

This example displays the make of the first car from a small, hard-coded JavaScript dataset of five vehicles. It renders the text "Honda" in large type within a preformatted HTML element. The code imports the car array from `cars.js` and parses a separate JSON string using `JSON.parse`. It then uses vanilla JavaScript and the DOM API `getElementById` to set the `textContent` of the message element on the page.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.