Nested Arrays

 let arr=[[1,2],[3,4],[5,6]];

console.log(arr.length);
console.log(arr[0].length);
console.log(arr[0][0].length);

let arr2=[[[1,2],[3,4]],[[5,6],[7,8]],[[9,0],[88,76]]];


Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code