What is the meaning of this output?

hello,

I am logging this code and i don’t understand its logging what does it mean?


function multiplyAll(arr) {
var product = 1;

for(i=0; i< arr.length; i++){
product += arr[i];
}

return product;
}
console.log(multiplyAll([[1,2],[3,4]]));

it logs : 11,23,4

Why?

Thanks Randel for the explicit explanation. I know about the nested arrays and how to solve the challange, I didnt understand the outcome when i tried to add the elements of the outer array. Now I understand. Thanks!