Skip to main content
100%

cars reports

✓ Published0🌍 Public
AAmit Kumar
Last edited Mar 6, 2020
Created on Mar 6, 2020
Forked from cars reports

This example demonstrates a text-based report of car listings filtered by price. It shows how asynchronous data loading and string formatting can drive a simple DOM update. The code uses `getCars` to return a Promise that resolves a hardcoded JSON array after a 1-second timeout, then `generateReport` filters cars under a max price and maps them through `formatCar` into readable lines. The result is displayed in a `<pre>` element via `document.getElementById`, with styling applied through an inline style attribute.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes