goldis
7/5/2019 - 12:58 PM

makeAdder

function makeAdder(value) {
    return number => value + number;
}

const add5 = makeAdder(5);
console.log(add5(2));