Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Viewing a saved revision (read-only)

8fd8abef0b81408998976d283a13c48f

Fork of Cars Report

0 stars1🌍 Public
TTim
Last edited Feb 1, 2021
Created on Feb 1, 2021
Forked from Cars Report

This example demonstrates a JavaScript programming tutorial that filters and formats a list of cars based on their price. It shows how to use objects, arrays, and modules to generate a text report, with a loading message displayed while the data is retrieved asynchronously. The code uses `Promise`-based `getCars` with a simulated delay, then applies `filter` and `map` on the car array with a `maxPrice` argument, and formats each car using template literals. The result appears in a `<pre>` element in the HTML.

AI-generated description

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