JSFiddle - React, Tailwind, and code Playground

by tsongas

JavaScript

function decide(cto) {
    return function notify(prospect) {
        return cto + " wants to hire " + prospect + ".";
    }
}
var decision = decide('Scott');
alert(decision('Chris'));