modify arrray js code example
Example 1: js array modify element
people[0] = "Georgie";
Example 2: how to modify an array
let firstNumbers = [1, 2, 3];
let secondNumbers = [4, 5, 6];
let merged = firstNumbers.concat(secondNumbers);
console.log(merged); // [1, 2, 3, 4, 5, 6]