loading...

re: Functional Programming in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey Hunter! Great post, thanks for sharing! I think I spotted a slight mistake with your section around reduce . The function signature of reduc...
 

The currentSum is meant to be the accumulator, so I think the code block is correct it's just the language above it that's ambiguous. I had intended it to be something that meant closer to "notice how we have a new parameter" rather than implying the number was the accumulator. Either way, I'll go back and try and clear that language up. Thanks for pointing this out!

code of conduct - report abuse