Open this example in the interactive library
Source code
const add = (a) => (b) => a + b;
console.log(add(5)(3));
Sample output
8

Curry a binary function. A self-contained example using the JavaScript runtime.
Open this example in the interactive library
const add = (a) => (b) => a + b;
console.log(add(5)(3));
8