Grids
Read · 1 of 4
An array of rows
A grid is an array whose items are rows (arrays). grid[r][c] is row r, column c. grid.length counts rows and grid[0].length columns.
Make an R × C grid of zeros with Array.from({ length: R }, () => Array(C).fill(0)).