How can I create a two dimensional array in JavaScript?

Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 600
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