how to declare three dimensional array in javascript code example Example: how to declare 3d array in javascript var myArray = [[[]]];