Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Bbenoitgabrielleger
Last edited Apr 8, 2020
Created on Apr 8, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, filtering a hard-coded JSON array of vehicle data to show only models priced under $2,000. The page renders a formatted list directly into a `<pre>` element using JavaScript’s native array methods `filter`, `map`, and `join`, along with a custom `formatCar` function that composes each line. It utilizes ES6 modules (`import`/`export`) to organize the formatting logic, data parsing via `JSON.parse`, and DOM manipulation through `document.getElementById`. No external visualization libraries are used; the output is plain text, not a chart.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes