Skip to main content
100%

Activities

✓ Published0🌍 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.

MIT Licensed

Similar vizzes