Multi-dimensional Arrays
let chessBoard = [
  [1, 2, 3, 4, 5, 6, 7, 8],
  [8, 7, 6, 5, 4, 3, 2, 1],
  [0, 0, 0, 0, 0, 0, 0, 0],
  [0, 0, 0, 0, 0, 0, 0, 0],
  [0, 0, 0, 0, 0, 0, 0, 0],
  [0, 0, 0, 0, 0, 0, 0, 0],
  [7, 6, 5, 4, 3, 2, 1, 8],
  [1, 2, 3, 4, 5, 6, 7, 8],
];
let rows = 3;
let columns = 4;
let table = [];

for (let i = 0; i < rows; i++) {
  table[i] = [];
  for (let j = 0; j < columns; j++) {
    table[i][j] = 0;
  }
}
console.log(chessBoard[0][1]); // This will output 2 (the knight on the white starting position)
for (let i = 0; i < chessBoard.length; i++) {
  for (let j = 0; j < chessBoard[i].length; j++) {
    console.log(chessBoard[i][j]);
  }
}