Created
October 13, 2012 18:10
-
-
Save rotoshine/3885607 to your computer and use it in GitHub Desktop.
Calculator.add refactoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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