The other 2 optional parameters to this function are : 1. index - The array index of the current iteration element. 2. array - The array itself. Code example :

let arr = [1,2,3];
newArr = arr.map((currentElemValue, currentElemIndex, arr) = > { 
 console.log(currentElemValue , currentElemIndex, arr);
})