You can create an array with some data or an array with the same values using fill method.
fill
var newArray = new Array(5).fill("0"); console.log(newArray); // ["0", "0", "0", "0", "0"]