how to check nested array in javascript code example
Example 1: nested array loop in javascript
let chunked = [[1,2,3], [4,5,6], [7,8,9]];
for(let i = 0; i < chunked.length; i++) {
for(let j = 0; j < chunked[i].length; j++) {
console.log(chunked[i][j]);
}
}
Example 2: javascript nested array
//2-dimensional(nested) array
var array = [[0,2,3,7,2,2,1],[1,2,6,3,7,0,3]]
Example 3: what is nested array javascript
nasted array