{"version":"1.0","type":"rich","title":"Map function javascript","description":"This example demonstrates how JavaScript’s `map` method processes an array of numbers by applying a squaring function to each element. It displays the squared results directly on the page using React’s `ReactDOM.render` method, with the output styled as large text in a green background container. The code defines an array `[10, 20]`, a `sq` arrow function, and a React component that calls `array.map` to transform the values before rendering. It relies on React 16.10 and standard ES6 syntax, but does not include any external charting or visualization libraries.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/19bbbe6ee86341db9dbf00b7a1e16e49?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}