Wrong Way to Make a 2D Array in JavaScript
Yet another pitfall in the land of JavaScript.
This is a wrong way to make a 2D array in JavaScript.
const n = 4;
const arr2d = Array(n);
lcs.fill(Array(n));
Yet another pitfall in the land of JavaScript.
This is a wrong way to make a 2D array in JavaScript.
const n = 4;
const arr2d = Array(n);
lcs.fill(Array(n));