Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
MMichelle Mac
Last edited Sep 28, 2020
Created on Sep 27, 2020
Forked from Hello VizHub

This example shows a simple text-based report of cars, filtering a list by price and formatting each entry as a line of year, make, model, and price. It loads car data asynchronously via a promise from `getCars.js`, displays a “Loading…” message, then uses `generateReport` to filter cars under $3000 and join them with newlines. The page updates a `<pre>` element using plain DOM `textContent`, with the data embedded as JSON in the source and modules imported via ES6 `import`/`export`.

AI-generated description

Example of how to use javascript arrays and modules.

Comments

Sign in to join the discussion.

MIT Licensed