🌍 Public
Viewing a saved revision (read-only)
d184cc52a03d4aada5d2ac6f0d948b5b
Cars Report
This example displays a text-based report of cars priced under $2000, using static JSON data embedded directly in the code. It filters the inline `cars` array with `.filter()` to select qualifying vehicles, formats each entry with a template literal, and joins them with `.join('\n')` into a single message. The result is rendered into a `<pre>` element by setting `textContent` via `document.getElementById()`, with styling applied through a Google Fonts-driven CSS file.
AI-generated descriptionAn example showing the capabilities of VizHub.