JavaScript Multidimensional Arrays

By: Dusty Arlia
Published on Saturday, March 1, 2014, 02:06 PM
Last Updated on Saturday, July 11, 2015 at 7:18 PM
Total Updates: 2

JavaScript does not have true multidimensional arrays, but they can be simulated with arrays of arrays. For example, if you had an array named matrix and every element of matrix was an array of numbers. Then to access a number you would have to do something like this for example: matrix[2][3] (which is the 3rd number of the 2nd array element of matrix). This access method uses the [] operator twice.

Comments:

Ad: