javascript array push same value multiple times code example
Example 1: javascript repeat element in array
Array(5).fill(2)
//=> [2, 2, 2, 2, 2]
Example 2: javascript add multiple items to array
var a = [];
a.push(1, 2, 3);
console.log(a);