Interviewing - Currying #1
by lasha
JavaScript
function doMath(value){
if(value === "add"){
var total = 0;
return function(value){
if()
console.log(total + value);
return total + value;
}
}
}
doMath("add")(10);
//doMath("add")(10)(5);