{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates fundamental JavaScript array operations, including range generation, sorting, filtering, mapping, and reducing, using a variety of data structures. The code creates a numeric range with a custom `range` function, sorts an array of numbers with a comparator, and applies transformations like doubling values and summing elements. It also defines an array of key-value objects. All operations are logged to the console, with results visible in the browser’s developer tools. The example imports the `ascending` helper from D3, though it is not actively used, and runs within a minimal HTML page with no visual output.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/390b9ba7813c4152b47e0e462b860d86?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}