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 stars0Public
Wwinniepooh520
Last edited Oct 1, 2020
Created on Oct 1, 2020
Forked from Cars Report

This example displays a text-based car report, filtering a list of vehicles by price and formatting each entry as “year make model: $price”. It begins with a “Loading...” message before asynchronously retrieving car data via a Promise-returning `getCars` function, then uses `generateReport` with `.filter` and `.map` to process the cars. The JavaScript modules `formatCar` and `generateReport` demonstrate object destructuring, array methods, and modular imports, with `JSON.parse` handling the embedded data and DOM `textContent` updating the display.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed