{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates JavaScript array methods—range, forEach, filter, sort, map, and reduce—through console output, illustrating how each operates on numeric and object data. The code builds a range array via a custom function using a for loop and push, then applies methods such as filter for even numbers, sort on numbers and object keys, and reduce for summation and key-value aggregation. It runs in a minimal HTML page with an embedded script, using plain JavaScript with no external visualization library despite d3 being listed as a dependency.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8b39811b7e8c4f07a465c6254ce750bf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}