© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Avi
I was trying currying in js but it works for sum(2)(3) and not on sum(2, 3)
const sum = a => b => a + b;
Where can I get more such challenges to practice and learn?
Biplab Malakar
Senior Software Engineer, JavaScript Developer, MEAN Developer, Node.js Developer, MERN Developer, Hybrid Mobile App Developer and ML Develo
sum = (a,b)=>{ if(b) { return a + b } else { return (d)=> { return a + d; } } } console.log(sum(3, 20)) console.log(sum(13)(20))
Biplab Malakar
Senior Software Engineer, JavaScript Developer, MEAN Developer, Node.js Developer, MERN Developer, Hybrid Mobile App Developer and ML Develo
sum = (a,b)=>{ if(b) { return a + b } else { return (d)=> { return a + d; } } } console.log(sum(3, 20)) console.log(sum(13)(20))