-
Add(1)(2)(3)…(n)() in Javascript | Sum(1,2)(3,4) | Currying | Javascript Interview | Walmart
Write a JS function to implement Add(1)(2)(3)…(n)() or just add(1)(2)(3) that returns 6 or may be sum(1,2)(3,4) that returns 10? This is a quite famous Javascript interview question with several complex variations. Goal…