Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
Aameisbe
Last edited Dec 20, 2020
Created on Dec 20, 2020
Forked from Cars Report

This example shows a loading state followed by a text-based report of cars priced under $2,000, formatted as lines like “2009 Ford F150: $1950”. It uses asynchronous JavaScript with a `Promise` and `setTimeout` to simulate fetching car data from a JSON string, then filters and maps the array with `Array.filter`, `Array.map`, and `Array.join`. The code imports and exports functions via ES modules, and updates the DOM by setting the `textContent` of a `<pre>` element. The report is generated entirely in the browser without any external visualization library.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed