🌍 Public
Viewing a saved revision (read-only)
66a45e09cf0b4401816c604c7f8694ff
Cars Report
This example demonstrates a text-based car report generated from an embedded JSON dataset. The page displays a loading message while `getCars()` resolves after a 5-second delay, then renders a filtered list of cars priced above a threshold. The code uses ES6 modules, promises with `setTimeout`, and the `filter`, `map`, and `join` array methods to format each car with the `formatCar` function. The output appears in a styled `<pre>` element with Ubuntu font and a dark background.
AI-generated descriptionAn example showing the capabilities of VizHub.