currying

--

let multiply = function (x,y){

console.log(x + “x”);

console.log(y + “y”);

console.log(x+y);

}

// let multiplytwo = multiply.bind(this, 2)

// multiplytwo(3);

// let multiplythree = multiply.bind(this, 2)

// multiplythree(3);

let mul = function (x) {

return function (y) {

console.log(x * y);

}

}

let multiplytwo = mul(2);

multiplytwo(2);

--

--

Santan Kumar Das

1. Involved in tough assignment analysing #humans mind... 2. DREAMER | BELIEVER BY CHANCE DOER BY CHOICE 3. Fresher with a new experience || learner