My code is correct, but the output is wrong. Please help!

Hi all. I’ve trying to create a function that multiply an array of numbers, but I can’t see what is wrong with my code.

Please check my code:

function multiply(numbers) {
    let product = 0;
    for (let number of numbers) {
        product += number;
    return product;

console.log(multiply([2, 3, 4]));

Is there any bug on my code, @Grasshopper_Ben? Please reply to my post @Grasshopper_Ben.


I think you are supposed to replace += with * i hope this helps!

and also i think you are supposed to have 2 input parameters in the function decleration and i think there is supposed to be 2 arguments in the function call. I hope this helps!