change an array to a new array code example Example: modify array js let newArray = oldArray.map(funcToEachElem);