-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Operations
The Mark edited this page Jan 25, 2023
·
1 revision
- subtract - Solve subtraction between 2 numbers.
- Sum - Solve sum between 2 numbers.
- divide - Solve division between 2 numbers.
- multiply - Solve multiplication between 2 numbers.
2. Solve subtraction between 2 numbers.
import TheMath from 'the-math';
const result = TheMath.subtract(10, 3);
// result: 73. Solve sum between 2 numbers.
import TheMath from 'the-math';
const result = TheMath.sum(14, 7);
// result: 214. Solve division between 2 numbers.
import TheMath from 'the-math';
const result = TheMath.divide(21, 3);
// result: 75. Solve multiplication between 2 numbers.
import TheMath from 'the-math';
const result = TheMath.multiply(6, 3);
// result: 18TheMath by TheMarkWill