To push with a multidimensional array with JavaScript, we call the push
method.
For instance, we write
arrayToPush.push([value1, value2, valueN]);
to call arrayToPush.push
with an array of values to append the array as the last element of arrayToPush
.