🌍 Public
Viewing a saved revision (read-only)
426ba3c1062a4cc19dfb06f3025cc5ed
Cars Report
This example shows a text-based report of cars filtered by price. It displays a loading message while fetching car data asynchronously, then renders each car’s year, make, model, and price on separate lines. The code uses a Promise-based `getCars` function with `setTimeout` to simulate a two-second delay, then filters the parsed JSON array with `filter` and formats entries via `map` and `join`. The report appears in a `<pre>` element, styled at a large font size.
AI-generated descriptionAn example showing the capabilities of VizHub