Infinite Currying in JavaScript

added by JavaScript Kicks
7/26/2022 2:26:13 PM

438 Views

Well, one fine day I was giving an interview for the frontend developer position and during the whole discussion, I came across a problem in which I had to develop a function that looked like this. console.log(sum(1)(2)(3)(4)(5)(6)()); Basically, this is a function that could sum n numbers.


0 comments