Two dimensional (2D) arrays in js 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));