Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

e02319d69141453498f4c626b06e614c

Cars Report

0 stars1🌍 Public
Llxdexixi
Last edited Jan 5, 2020
Created on Jan 5, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based car report by filtering a dataset of car objects by price and formatting the results as a list. It uses JavaScript modules to separate concerns, with `getCars.js` simulating asynchronous data retrieval via a Promise, `formatCar.js` formatting individual car entries, and `generateReport.js` composing the final report. The page displays a loading message initially, then the filtered report is rendered into an HTML `<pre>` element after the simulated delay.

AI-generated description

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