map() method of javascript
Normally to perform any operation on array elements we use for loop and store the element in another array, but now we can do any operation on array elements just by using map() method provided by javascript.
General syntax of map() method is,
array....
deekshithmd.hashnode.dev3 min read