Workshop › Tetris-style Blocks › Step 2 of 32
The well's contents are a list of 20 rows, each a list of 10 numbers: 0 is an empty cell, any other number a filled
one. emptyRow() makes one row of zeros.
```js
function emptyRow() {
return Array(COLS).fill(0)
}
let board = Array.from({ length: ROWS }, emptyRow)
```Array(COLS).fill(0) makes an array of 10 slots and fills them with 0; return hands it back.Array.from({ length: ROWS }, emptyRow) makes 20 elements by calling emptyRow for each, so every row is its own
array. board[19][0] is the bottom-left cell.Under const CELL = 24 leave an empty line and write emptyRow and board.
Skills: Arrays and objects