Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
Aabo3zah
Last edited May 25, 2020
Created on May 25, 2020
Forked from Cars Report

This example displays a list of cars with their year, make, model, and price, filtering out any vehicle priced above a set threshold. It uses plain JavaScript promises with `setTimeout` to simulate asynchronous data loading, and leverages ES6 module imports and exports to organize functions like `formatCar` and `generateReport`. The car data is stored as a JSON string, parsed into an array, and rendered into a text-based report inside a `<pre>` element in the HTML, with a loading message shown while the data is being fetched.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed