var d=["i","am"];
d[1]="expert";
d.push("developer");
console.log(d);//["i", "expert", "developer"]
var a = [];
a.push(1, 2, 3);
console.log(a);
var a = [1];
var anew = [3,4,5];
a.push(...anew)
console.log(a);//[1, 3, 4, 5]
var a = [1];
var anew = [3,4,5];
a.push(anew)
console.log(a);//[1, Array[3]]