Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Viewing a saved revision (read-only)

8150b328d3504a83851852aca25380e2

Fork of Cars Report

0 stars0🌍 Public
Jjlspangl
Last edited May 19, 2021
Created on May 19, 2021
Forked from Cars Report

This example demonstrates a JavaScript module-based workflow for generating a text report of used cars filtered by price. It shows a loading message, then displays a formatted list of cars under $2,000, including year, make, model, and price. The code uses `JSON.parse` to load an embedded car dataset, `Promise` with `setTimeout` to simulate an asynchronous API call, and `Array.filter` and `map` combined with string template literals to build the output. The report is rendered directly into an HTML `<pre>` element.

AI-generated description

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