You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
217 B

const f = (a) => (b) => { return a * b }
function ff (a) { return f(a) }
assert.equal( ff(2)(3), 6 );
const g = (a) => { return (b) => { return a - b } }
function gg (a) { return g(a) }
assert.equal( gg(2)(3), -1 );