Array A is a two dimensional array. It’s made up of array X and Y. I’d like to add array Z to Array A as another item in Array A. How do I do this?
Edited to add code:
arrayA = new Array(
[1, 2, 3] //array x
[4, 5, 6] //array y
);
arrayZ = new Array(7, 8, 9);
//now, how do I add arrayZ onto the end of arrayA?
This will add it to the end of arrayA
Here’s a reference for
push: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/push