Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JS Arrays

Public visualization

Viewing a saved revision (read-only)

1d5405e92d2f420489654f0abfd63f1b

JS Arrays

0 stars0🌍 Public
Bbei2
Last edited Aug 7, 2022
Created on Aug 7, 2022
Forked from HTML Starter

This example demonstrates JavaScript array manipulation using a custom `range` function to generate an array of ten numbers, then mapping each element to an object containing the original number and its double. The code logs the resulting array of objects to the browser console. It uses the native array methods `push`, `map`, and `forEach`, with additional commented-out examples showing `filter`, `sort`, and `reverse` operations. The visualization is purely text-based, with output appearing in the developer console rather than on the page.

AI-generated description