Continuing the discussion from freeCodeCamp Challenge Guide: Iterate Through an Array with a For Loop:
Here’s the problem. If you checkout the challenge, it is clearly mentioned that the total variable should be declared and initialized to 0.
which is not followed in this solution. Clarify it. If we discuss the problem, we’ll find a solution. Thanks.