Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activities

Public visualization

Viewing a saved revision (read-only)

d55c43ea5f5345ae85a6614cdc2c7e37

Activities

0 stars0🌍 Public
SSandraPicarra
Last edited Oct 17, 2020
Created on Oct 17, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based activity report from a JSON dataset. It loads a list of activities, filters them by price, and formats each entry into a readable string. The page initially shows “Loading...” and then displays the report after a simulated two-second delay. The code uses a JavaScript Promise in `getActivity` to retrieve the data, array methods `filter` and `map` to process it, and template literals for formatting. The final output is rendered in a `<pre>` element.

AI-generated description

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