JavaScript offers powerful flexibility when it comes to function chaining, currying, and type coercion. In this guide, we'll implement a function sum() that can be called repeatedly like this:
sum(0)(1)(2)(3)(4)(5) âžž 15
Notice: No final () required! 🤯
✅ Problem Statement
Write a function such that: