currying mdn code example
Example: currying javascript
// It is also called nested function is ecmascript
const multiply = (a) => (b) => a*b;
multiply(3)(4); //Answer is 12
const multipleBy5 = multiply(5);
multipleBy5(10); //Answer is 50
// It is also called nested function is ecmascript
const multiply = (a) => (b) => a*b;
multiply(3)(4); //Answer is 12
const multipleBy5 = multiply(5);
multipleBy5(10); //Answer is 50