showing results for - "how to bind multiple value in javascript"
Jonas
25 Sep 2018
1var sum = function(a, b, c) { return a + b + c };
2var sumAB = sum.bind(null, 1, 5);
3var sumC = sumAB.bind(null, 2);
4
5console.log(sumC());
Luca
13 Aug 2017
1var sum = function(a, b, c) { return a + b + c };
2var sumAB = sum.bind(null, 1, 5);
3var sumC = sumAB.bind(null, 2);
4
5console.log(sumC());
similar questions
queries leading to this page
how to bind multiple value in javascript