Intermediate Algorithm Scripting: Arguments Optional

Tell us what’s happening:

I have no issues in my code. But I am curious to know if this challenge can be done using the currying and partial application method?

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15.

Challenge: Arguments Optional

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional

your function returns a function, that is currying

1 Like