Skip to content
Advertisement

The Odin Project – Fundamentals 4 Exercises – sumAll

I am stuck in the sumAll exercise from the Fundamentals 4 portion of the Odin Project. I managed to pass the test in which I need the result to be ‘ERROR’. However, I cannot figure out the correct code to pass the other tests. Where did I go wrong?

This is the exercise:

JavaScript

My code:

JavaScript

Advertisement

Answer

I made in this way:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement