Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Cars Report

0
Rrpadron8
Last edited Oct 6, 2021
Created on Oct 6, 2021
Forked from Cars Report

This fork demonstrates a modular JavaScript approach to generating a text-based car report. It stores a hardcoded array of car objects in JSON, parses it with `JSON.parse`, and uses a Promise-based `getCars` function with a simulated 2-second delay. The `generateReport` function filters cars below a maximum price, maps them through `formatCar`, and joins the formatted strings with newlines. The page uses an `index.html` with a `pre` element, where the final output is rendered by setting `textCont` on that element.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed