我试图从数组中的这些数组中获取数字以在新行上打印,但不知道如何引用它们以便将它们打印到控制台。我在这里想念什么?
var numbers = [
[1,2,3,4,5,6,7],
[8,9,10,11,12,13,14,15,16],
[17,18,19],
[20],
[21,22,23,24,25,26],
[27,28,29,30]
];
for (i=0; i<numbers.length; i++) {
for (j=0; j<numbers[i].length; j++) {
console.log(numbers[i].j); //The problem is with this j here I suspect...
}
}