notes/sandbox/jest/calculator.js
2023-04-22 00:41:54 -07:00

13 lines
226 B
JavaScript

const mathOperations = {
sum: function(a, b) {
return a + b
},
diff: function(a, b) {
return a - b
},
product: function(a, b) {
return a * b
}
}
module.exports = mathOperations