javascript edit arrays code example
Example 1: modify array js
let newArray = oldArray.map(funcToEachElem);
Example 2: how to modify an array
let browsers = ['chrome', 'firefox', 'edge'];
browsers.pop(); // "edge"
console.log(browsers); // ["chrome", "firefox"]