I tried to make an array and then to map over it and declare new arrays but failed miserably.
let matrix = (new Array(5).fill(0)).map(new Array(5).fill(0));
I tried to make an array and then to map over it and declare new arrays but failed miserably.
let matrix = (new Array(5).fill(0)).map(new Array(5).fill(0));