# Grids: Arrays of Arrays

Keep data that comes in rows and columns in an array of arrays, read or change one square with grid\[row\]\[col\], rows first and both counted from 0, and visit every square with a loop inside a loop.

![Cheat sheet for Grids: Arrays of Arrays in JavaScript: rows first, then columns, both counted from 0](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/317a3ed10afa44009356829cf60b9624.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: Array Index (javascript), JavaScript, Nested Array, Nested Loop (javascript)
- Author: Gregor Dzierzon
- Updated: November 25, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-arrays-grids-cheat-sheet
