🌍 Public
Viewing a saved revision (read-only)
38f5f8bf343a4cc2bc4cddeca8a4a59f
Cars Report
This example displays a simple text-based report of cars filtered by price. It shows a loading message while a promise with a five-second delay resolves, then renders a formatted list of vehicles whose price exceeds a maximum threshold. The entry point (index.js) calls `getCars()`, a function that parses inline JSON data and returns a Promise, then uses the `generateReport` and `formatCar` ES6 modules to filter and stringify each car’s make, model, year, and price. The output appears in a styled `<pre>` element on a dark page.
AI-generated descriptionAn example showing the capabilities of VizHub.