how to change all things in an array in html code example Example: modify array js let newArray = oldArray.map(funcToEachElem);