Skip to main content
100%

Cars Report

✓ Published0🌍 Public
BBazarbayevManas
Last edited Aug 15, 2019
Created on Aug 14, 2019
Forked from Cars Report

This example displays a filtered list of cars priced under $2000, formatted as text lines in a large HTML `<pre>` element. It demonstrates simple data handling in JavaScript, using a hardcoded JSON array of car objects (make, model, year, price) and the `Array.filter` method to select qualifying entries. The `formatCar` function, imported from a separate module, converts each car object into a readable string, and the results are joined with newlines before being injected into the DOM via `document.getElementById` and `textContent`.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes