A basic calculator using functional javascript programming
JavaScript
Functional Calculator
A basic calculator using functional javascript programming
Usage
var calc = new FCalc();
var getResult = calc.input(3)(add)(3)(subtract)(2)(exponent)(4);
var result = getResult(); // 1024
//or
var result = new FCalc().input(3)(multiply)(3)(); // 9