How can I create a two dimensional array in JavaScript?

vishalneeraj-24503
Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 633
By using below code,we can create 2 dimensional array in JavaScript.

function two_dimensional_array()
{
var two_dim_arrays = [[1,2],[3,4],[5,6]];
}

[1,2] denotes that it's a two dimensional array.

Comments or Responses

Login to post response