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
AAravind Subramaniam
Last edited Jan 15, 2020
Created on Jan 15, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based report from a hardcoded array of car objects, listing vehicles priced under $2,000 in the format “year make model:$$price.” The interface initially displays “Loading…” while the `getCars` function simulates a two-second delay with a promise before data is processed. The `generateReport` module filters the array, maps each car through the `formatCar` utility, and joins results on newlines. The page updates via `document.getElementById` to replace the loading message with the final report.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed