{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates JavaScript array manipulation techniques, including `forEach`, `filter`, `sort`, `map`, and `reduce`, using a generated range of numbers and an array of key-value objects. The code highlights sorting differences between default lexicographic ordering and numeric sorting with a comparator, as well as using the `ascending` helper from d3. It also shows how `reduce` can transform an array into an object or sum values. The visualization is a code-based teaching tool with no visual output, focusing on logged results in the console.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/bcfcab3762554be0a56a6ce91923121b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}