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

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

This example displays a simple text report of used cars priced under $2,000, generated from a local JSON array. It shows how to parse the data with `JSON.parse`, filter and map it using array methods, and format each entry with a template literal. The `generateReport` function returns a newline-separated string, which is inserted into the page via `document.getElementById`. The code demonstrates modular JavaScript with `export` and `import` statements, and uses a Promise with `setTimeout` in one module to simulate asynchronous data fetching.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed