can i push multiple elements to array code example
Example 1: how to push two values in array at once
let arr = [];
arr.push(1);
arr.push(2);
console.log(arr);
result [1, 2]
Example 2: javascript add multiple items to array
var a = [];
a.push(1, 2, 3);
console.log(a);