What is the map method in javascript ?

It is use for the iterate the array element basically it crate new array with result of calling function. EX: var numbers = [25, 36, 49, 64]; var sqrtNumbers = numbers.map(Math.sqrt)

Comments