MCPcopy Create free account
hub / github.com/Faheem-Khan97/javascript-coding-problems-with-theory / sum2

Function sum2

currying.js:14–18  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

12console.log(addition1); // 7
13
14function sum2(a){
15 return function(b) {
16 return a + b;
17 }
18}
19const addition2 = sum2(3)(4);
20console.log(addition2); // 7
21

Callers 1

currying.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected