Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
console.log(addition1);
// 7
13
14
function
sum2(a){
15
return
function
(b) {
16
return
a + b;
17
}
18
}
19
const
addition2 = sum2(3)(4);
20
console.log(addition2);
// 7
21
Callers
1
currying.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected