Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
Kkatemartin9
Last edited Aug 18, 2020
Created on Aug 17, 2020
Forked from Cars Report

This example shows a text-based report of used cars priced under $2,000, formatted as a list of lines such as “2012 Nissan Leaf: $1800.” It filters a static JSON array of car objects, transforms each matching entry with a destructuring template literal, and joins the results with newlines. The report is written into a `<pre>` element via `document.getElementById` and `textContent`. The code uses ES modules, `JSON.parse`, `Array.filter`, `Array.map`, and `Array.join`.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed