Skip to main content
Public

Share visualization

Loading preview…

Cars Report

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Cars Report

0
Vvaynexie
Last edited Dec 26, 2019
Created on Dec 26, 2019
Forked from Cars Report

This example demonstrates a text-based car report generated from an in-memory JSON dataset of five vehicles. It shows filtered results, listing cars priced under $2000 as formatted strings combining year, make, model, and price. The implementation uses JavaScript arrays, objects, destructuring, and template literals, with `Array.filter`, `Array.map`, and `Array.join` to transform the data. The report displays in an HTML `<pre>` element, while separate modules (`cars.js`, `formatCar.js`, `generateReport.js`, and `getCars.js`) illustrate modular code organization and a simulated asynchronous `getCars` promise.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed