How can I create a two-dimensional array in Java Script? The Problem You have data that you want to represent as a 2 D array.