Let's consider an example array:
var myArray = [
[1,2,3],
[4,5,6],
[7,8,9,10],
[[11,12],[13,14,15]]];
for (var i = 0; i < myArray.length; i++){
for(var j = 0; j < myArray[i].length; j++){
for(var k = 0; k < myArray[i][j].length; k++){
console.log(myArray[i],[j][k]);
}
}
}
However, the output only shows 11, 12, 13, 14, and 15. I aim to print all values in the array. Can someone please suggest a solution? Thank you in advance.