Skip to main content
100%

Cars Report

✓ Published0🌍 Public
JJordan Arnold
Last edited Mar 6, 2021
Created on Mar 6, 2021
Forked from Hello VizHub

This example shows a text-based report of cars filtered by price, displaying each vehicle as a formatted string like "2000 Honda Accord: $2800" in a large font on a webpage. It uses the browser’s `document.getElementById` to update an HTML `<pre>` element after fetching data asynchronously through a custom `getCars` function that resolves a promise with a 2-second delay. The report generation relies on array methods `filter` and `map`, combined with a `formatCar` helper to build the output from hardcoded JSON.

AI-generated description
MIT Licensed

Similar vizzes