Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

6edd88b56e8e4d739664e4a75afdc5cf

Cars Report

0 stars0🌍 Public
FFatimaJahara
Last edited Aug 26, 2019
Created on Aug 26, 2019
Forked from Cars Report

This example demonstrates a text-based car report generated asynchronously from hard-coded JSON data. It parses five car records with year, make, model, and price, filters them by a price threshold, formats each matching entry, and displays the result in an HTML `<pre>` element. The code uses ES6 modules, `JSON.parse`, `Promise`, `setTimeout`, and string template literals. A loading message appears initially, followed by the report after a two-second delay, implemented via `getCars` and `generateReport` functions.

AI-generated description

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