{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates core JavaScript array operations using D3’s ascending helper and native methods like sort, map, reduce, and range construction. It shows how to generate a numeric sequence, sort an array with a custom comparator, transform values into objects, and accumulate sums or key-value pairs. The code logs intermediate results, including sorting an array of objects by key and reducing entries into a plain object. Rendering is limited to console output with no visual DOM elements. It relies on d3.ascending for alphabetical ordering within the sort operations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4c816240fae7424d92c49c37d1961c2c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}