Optional Arguments Sum Function

I just finished this challenge yesterday, but not without a struggle. This was recently pushed up to the JavaScript Fundamentals area of the Certified Full Stack Developer curriculum. Two things: 1) This challenge requires some understanding of currying, which I don’t think was discussed in any of the lectures, 2) And is Fundamentals the best home for this headscratcher?

But don’t get me wrong. I loved doing this challenge and would welcome more like it to reinforce intermediate to advanced JavaScript concepts.

https://forum.freecodecamp.org/t/build-an-optional-arguments-sum-function-build-an-optional-arguments-sum-function/760897?u=dovb1ek

See this post bro!

Thanks! Good to see another approach to this one!

Here’s a good reference on rest parameters, if anyone is interested:
Rest parameters - JavaScript | MDN