While working on a side project, for which I found a small amount of time to work on. I created this rather simple and basic calculator, made with jQuery (Of course).
You can view the calculator here: jQuery Calculator
In this case, I passed in the Left and Right values along with the operator and simply stored the output. For example, if you typed in “55”, hit “+” and then entered “100”. I simply call:
var result = eval(’55’ + ‘+’ + ‘100’);
Which resulted in the numeric value of 155, of course.