How do I create an empty 2D array in Javascript (without knowing how many rows or columns there will be in the new array)?
If it\'s a simple array var newArra
var newArra
const grid = new Array(n).fill(new Array(n))