Hi, I tried to use the code suggested by the example but it fails to produce the desired result. Can someone give at least a hint about what I am doing wrong here?
Thx in advance
function multiplyAll(arr) {
let product = 1;
// Only change code below this line
for (let i = 0; i < arr.length; i++) {
for (let j = i; j < arr[i].length; j++) {
console.log(arr[i][j]);
}
}
// Only change code above this line
return product;
}
multiplyAll([[1, 2], [3, 4], [5, 6, 7]]);