{"version":"1.0","type":"rich","title":"JavaScript arrays","description":"This example demonstrates common JavaScript array manipulation techniques, including `map`, `filter`, `reduce`, and custom sorting, using both native methods and D3’s `ascending` and `descending` helpers from d3-array. The code creates a range of numbers, filters for even values, transforms objects, and sorts an array of numeric and key–value entries. It shows how `reduce` can aggregate values or build an object from array entries. The visualization is a bare HTML page with no rendered graphics, focusing instead on console output for learning array operations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4f9b766df4a4404a848a019e10ab4af1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}