Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
ÁÁlvaro Cáceres Muñoz
Last edited Feb 26, 2021
Created on Jan 24, 2021
Forked from Hello VizHub

This example displays a text-based report of used cars priced under $2,000, with each entry formatted as “year make model: price” and separated by newlines. After a brief “Loading...” state, the report appears once data arrives, filtering five car records from an inline JSON array. The code demonstrates modular JavaScript with ES modules, using `getCars()` to return a Promise that resolves after a two-second delay, and `generateReport()` to filter and map the data. The output is rendered into an HTML `<pre>` element via `textContent`.

AI-generated description

An example tutorial of how to use JS objects, arrays, and modules. (oh, and also typing, i.e. how to write and stuff)

Comments

Sign in to join the discussion.

MIT Licensed