🌍 Public
Viewing a saved revision (read-only)
a8929bb97d4141a9b0afe7f790aab319
cars reports
This example demonstrates a loading and reporting workflow for car listings. It displays a text report of cars priced under a user-defined threshold, filtering from a hardcoded JSON dataset. The page initially shows a “loading...” message while `getCars()` simulates a five-second asynchronous delay. Once loaded, `generateReport` filters the cars by price and formats each entry using `formatCar`, which outputs a line with the year, make, model, and price, rendered inside a `<pre>` element.
AI-generated descriptionAn example showing the capabilities of VizHub.