JSFiddle - React, Tailwind, and code Playground
JavaScript
var adder = function(t) {
return function(z) {
return z + t;
}
};
var f = adder(5); //sets f to result of addr function (z + t), passing 5 as t
console.log(f(2)); //sets z to 2 in the return function of adder???