Cars Report
✓ Published0🌍 Public
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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed