Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JavaScript Basics Array

Public visualization

Viewing a saved revision (read-only)

9930e10f498f40499ce63e4c66ede66f

JavaScript Basics Array

0 stars1🌍 Public
Ccssergio
Last edited May 24, 2022
Created on May 24, 2022
Forked from Untitled

This example demonstrates fundamental JavaScript array operations through the D3 library. The code uses `d3.select` and `d3.range` to create an SVG container, though no explicit data is rendered visually. Instead, the example focuses on array manipulation methods including custom range generation, sorting with comparison functions, and console output of results. It reproduces a Sol LeWitt art piece concept while experimenting with array methods like `sort`, `filter`, `forEach`, and `reverse` on hardcoded numeric arrays. The rendering approach uses an SVG element sized 960×500 pixels, with all operations logged to the browser console.

AI-generated description

A reproduction of a Sol LeWitt art piece.