{"version":"1.0","type":"rich","title":"Map function javascript","description":"This example demonstrates the JavaScript `Array.map()` method by applying a squaring function to a numeric array and logging each result to the console. It also renders a single calculated value (225) on screen using React 16.10. The visualization component uses ReactDOM to mount the result within a light green root container, while the console output shows the mapped answers from the hardcoded data array `[10, 20]`. The code combines React for UI rendering with native JavaScript functional programming for data transformation.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/28ea9e56e7064c5ab95d2ac5448c53dc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}