javascript add several elements to array code example
Example 1: js push multiple arguments
var a = [];
a.push(1, 2, 3);
console.log(a);
Example 2: javascript add multiple items to array
var a = [];
a.push(1, 2, 3);
console.log(a);
var a = [];
a.push(1, 2, 3);
console.log(a);
var a = [];
a.push(1, 2, 3);
console.log(a);