Today I have learned Multidimensional array in javascript
Multidimension array in javascript:
- However, you can create a multidimensional array by defining an array of elements, where each element is also another array. For this reason, we can say that a JavaScript multidimensional array is an array of arrays. The easiest way to define a multidimensional array is to use the array literal notation.
- You can access the elements of a multidimensional array using indices (0, 1, 2 …). For example, You can think of a multidimensional array (in this case, x), as a table with 3 rows and 2 columns. You can use the Array's push () met hod or an indexing notation to add elements to a multidimensional array.
Comments
Post a Comment