Skip to content

Instantly share code, notes, and snippets.

@rotoshine
Created October 13, 2012 18:10
Show Gist options
  • Save rotoshine/3885607 to your computer and use it in GitHub Desktop.
Save rotoshine/3885607 to your computer and use it in GitHub Desktop.
Calculator.add refactoring
var Calcurator = {
"add" : function(a, b){
return parseInt(a) + parseInt(b);
},
"minus" : function(a, b){
return a - b;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment