Tworzenie tablicy 2D w JS

var x = new Array(10);

for (var i = 0; i < x.length; i++) {
  x[i] = new Array(3);
}

console.log(x);
Obedient Ox