🌍 Public
Viewing a saved revision (read-only)
55cbf55e119a418e82a9a4971db4da6c
Cars Report
This example renders a simple text report about cars from a static JSON array imported via an ES6 module. It displays the make of the first car in large, styled text using the Ubuntu font from Google Fonts, with dark blue page background and light text color. The code defines a `formatCar` function to convert a car object into a readable string, and it filters, maps, and joins the data, though only the first car’s make is ultimately shown in the `message-element` `<pre>` tag. It uses plain JavaScript array methods and DOM manipulation via `document.getElementById`.
AI-generated descriptionAn example showing the capabilities of VizHub.