Basic JavaScript - Replace Loops using Recursion

Thanks for the reply. I can’t even seem to think how that would work? Like this?

sum([1,3,4,5], 2 -1) + 3 

I still don’t know what is happening there. So the ‘+ 3’ bit is because 3 is the 2nd element of the array. But what is being added to the 3 there?