Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

0aaed80308ea4be0ae61d0efd89c5e70

Cars Report

0 stars0🌍 Public
Ddramalhoo17
Last edited Oct 8, 2020
Created on Oct 8, 2020
Forked from Cars Report

This example shows a small web application that loads a list of used cars and displays a formatted report of those priced under $2300. The data is defined as a JSON string in the `getCars.js` file and returned asynchronously via a JavaScript Promise with a simulated two-second delay. The `generateReport.js` module filters the array, maps each car through the `formatCar` function, and joins the results into a text output displayed in a `<pre>` element. The interface uses a simple loading message that is replaced once the Promise resolves.

AI-generated description

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