JavaScript Tutorial ✦
Jagged Arrays
Arrays of arrays where each subarray can have different lengths.
const jagged = [[1, 2], [3], [4, 5, 6]];
console.log(jagged[2][1]); // 5
Questions & Answers Related
No Q&A available for this topic.
Arrays of arrays where each subarray can have different lengths.
const jagged = [[1, 2], [3], [4, 5, 6]];
console.log(jagged[2][1]); // 5