map() Example 2 map() Example 2 This example defines an array [1, 4, 9] and then returns an array with the square roots of all numbers.
This example defines an array [1, 4, 9] and then returns an array with the square roots of all numbers.