js push array elements into another array code example
Example 1: javascript array push object
var myArray = [];
myArray.push("Example");
myArray.push("text");
Example 2: js add array items to array
var arrayA = [1, 2];
var arrayB = [3, 4];
var newArray = arrayA.concat(arrayB);