Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
Eegrebing
Last edited Sep 19, 2020
Created on Sep 19, 2020
Forked from Cars Report

This example demonstrates a JavaScript report generator that filters a small dataset of cars by price and displays the results as formatted text. The code simulates an asynchronous data fetch with `getCars` using a promise and a two-second delay, then processes the data with `generateReport`, which filters cars under a $3,000 threshold and maps them to strings via the `formatCar` helper. The final output is shown in a `<pre>` element on an HTML page, showcasing modular JavaScript with `import`/`export` statements and object destructuring.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed