adicionar novo valor em todos index do array javascript code example
Example: javascript atualize array
let yourArray = [1,2,3,4,5];
// if you want to change " 3 " for " 6 " you must count the indexs
// item | 1 2 3 4 5
// index| 0 1 2 3 4
yourArray[2] = 6
// yourArray -> [1,2,6,4,5]