...

/

Multi-Dimensional Arrays

Multi-Dimensional Arrays

Learn about multi-dimensional arrays in JavaScript.

We'll cover the following...

We can create an array of arrays, known as a multi-dimensional array, by placing multiple arrays inside a container array. This could be used to create a coordinate system, for example:

Press + to interact
const coordinates = console.log([[1, 3], [4, 2]]);

To access the values in a ...