of course, you'll need to do this before you get started:
const 'name-of-your-variable' = require('mobimath')
Then to get started, make sure you do 'name-of-your-variable' . 'function-type'
-
addThis(any a, any b) : Gets any type of number, adds them, and returns sum
-
subtractThis(any a, any b) : Get any type of number, subtracts them, and returns sum
-
multiplyThis(any a, any b) : Gets any type of number, multiplies them, and returns sum
-
divideThis(any a, any b) : Gets any type of number, divides them, and returns sum
Examples of code:
const math = require('mobimath')
console.log(math.addThis(3,5)) prints 8
console.log(math.divideThis(2, 8)) prints 0.25
console.log(math.subtractThis(8, 8)) prints 0
console.log(math.multiplyThis(10, 4)) prints 40