+ 1
How to create a multi dimensional array?
i want to create a multi dimensional array to find the sum of numbers of each row and column
3 Respuestas
0
In what language?
0
javascript
0
I'm not sure if it's possible in Js, you could use a jagged array I guess
var nums = new Array(1, 2);
var nums2 = new Array(3, 4);
var jaggedarr = new Array(nums, nums2);
alert(jaggedarr[0][1]);//output 2