Is it just me, or the instructons arent what they should be? I mean im really lost in here, and have currently no idea how to solve it…
The instructions are fine, but it’s a confusing topic. Higher order functions are notoriously difficult to wrap your head around.
reduce takes all of the values in an array and combines them into a single value by calling the inner function each time.
Copypasting the code is a good start, but read the instructions again. You need to sum the numbers. Also, re-read the second paragraph. 30 isn’t the value you want to pass
thanks man, but i already manage to solve the problem. it was a bit confusing