define javascript array of 2D values code example
Example: creating 2d array in javascript
var [r, c] = [5, 5];
var m = Array(r).fill().map(()=>Array(c).fill(0));
var [r, c] = [5, 5];
var m = Array(r).fill().map(()=>Array(c).fill(0));