Jagged arrays 7/17


#1

Hello,
Could you help me please.
Thanks


#2

@screenduck Could you help me? Thanks


#3

Could you explain a bit further what exactly your problem is?


#4

var jagged = [
[1,2,3],
[1,3,3,4],
[1,2]
];

for(var i = 0; i < jagged.length; i++) {
console.log("Value of element " +
i +" of variable jagged: " +jagged[i]);
for (var i1 = 0; i1 < jagged[i].length; i1++) {
console.log("\t" +
"element "+i1+
" of jagged["+i+"] is " +jagged[i][i1] );
}
}


#5

there is a problem with the syntax or whatever