Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
SShashankC22
Last edited Jul 13, 2020
Created on Jul 13, 2020
Forked from Cars Report

This example demonstrates a simple car report by displaying the make of the first car in a dataset. It shows how to store car information, including year, make, model, and price, as a JSON string parsed into a JavaScript array using `JSON.parse`. The page renders the selected data point as text content in an HTML `<pre>` element, updated via the Document Object Model’s `textContent` property. The code imports the parsed `cars` array from a module and accesses its first entry to output “Honda” on screen.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

Comments

Sign in to join the discussion.

MIT Licensed