{"version":"1.0","type":"rich","title":"Javascript - Arrays","description":"This example demonstrates JavaScript array manipulation techniques using D3 v7 and native console logging. It creates a range of numbers (0–9) through a custom `range` function, then exercises methods including `forEach`, `filter`, `map`, `reduce`, and `sort` with both default and comparator-based behavior. The code logs filtered even numbers, mapped objects, and accumulated sums, while also comparing native array sorting with D3’s `d3.ascending` comparator. The visualization is purely textual, outputting results to the browser console to illustrate array operations in a D3 context.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/db1943f523654dc3b4964fa713cb92a6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}