UNPKG

allmathsolve

Version:

A set of functions that allow you to easily solve mathematical operations.

21 lines (15 loc) 340 B
module.exports.add = function add(a,b){ return a + b } module.exports.substract = function substract(a,b) { return a - b } module.exports.multiply = function multiply(a,b) { return a * b } module.exports.divide = function divide(a,b){ return a / b } module.exports.percentage = function percentage(a,b){ return a % b }