- Functions Currying is same as funtions clousers in javascript.
- In Functions currying we are always passing argument to the fuction and it will returning the function. By using that innerfunction will return output.
function sumFn(a){
return (b)=>{
return a+b;
}
}
const sum = sumFn(1);
console.log(sum(6));
function sumFn2(a){
return (b)=>{
return a+b;
}
}
console.log(sumFn2(2)(3))
const sumFn3 = a => b => a+b;
console.log(sumFn3(7)(3))