How to push to a JavaScript multidimensional array?

To push to a JavaScript multidimensional array, we call the push method.

For instance, we write

cookieValue.push([productID, itemColorTitle, itemColorPath]);

to call cookieValue.push with an array with the items we want to append the array into the cookieValue array.