Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Carjgvg`s Report

Public visualization

Viewing a saved revision (read-only)

4d8bc1787f8843d0b722c8432a9b4cb4

Fork of Carjgvg`s Report

0 stars0🌍 Public
FFabio Tejedor
Last edited Jan 27, 2021
Created on Jan 27, 2021
Forked from Cars Report

This example demonstrates a JavaScript car report generator that filters a list of cars by price and formats the results into a text display. It uses a mock data source defined in a JSON string within `getCars.js`, which is parsed and returned via a Promise with a simulated 2-second delay. The report is built with `generateReport.js`, which filters car objects below a maximum price and maps them through `formatCar.js` to produce formatted strings. The page’s `<pre>` element initially shows “Loading...” and then updates with the final report using the `getCars()` and `generateReport()` functions.

AI-generated description

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