0

I've done this only for addition to make it more readable -
var Calculator = function() {
this.calculate = function(eq, valone, valtwo, op) {
var val1 = parseInt($(valone).val());
var val2 = parseInt($(valtwo).val());
var eqCtl = $('#' + eq),
var o...