Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars1🌍 Public
Mmuxiaofan
Last edited Jun 10, 2020
Created on Jun 10, 2020
Forked from Cars Report

This example displays a report of cars with prices under $2,000, formatting each entry as a line like “2000 Honda Accord: $2800”. The page initially shows a “Loading...” message, then fetches the car data from a hardcoded JSON array via the `getCars` promise, filters it using `filter`, and formats the output with `formatCar` and `generateReport`, using JavaScript object destructuring and array methods. The result is rendered into a `<pre>` element styled at a large font size.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed