UNPKG

sum-difference-multiplication-division

Version:

Here you can add ,substract,multiply and divide two numbers by writing add(a,b) ,sub(a,b),mult(a,b),div(a,b) and it will return the calculated value

4 lines 223 B
module.exports.add = function (a, b) { return (a + b )} module.exports.sub = function (a, b) { return (a - b )} module.exports.mult =function (a, b) { return (a * b )} module.exports.div =function (a, b) { return (b/a )}