Multi-Dimensional
JavaScript only has one-dimensional arrays but you can build arrays of arrays.
let myArray = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
];
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext
JavaScript only has one-dimensional arrays but you can build arrays of arrays.
let myArray = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
];