Just a script of a basic calculator that do 4 operations: plus, division, times and subtraction.
How to use:
- To use plus just call, plus(num1, num2)
- To use division just call, divide(num1, num2)
- To use times just call, times(num1, num2)
- To use subtracion just call, sub(num1, num2)
Usage example
For async function, now just call like the example above:
const calcs = async () => {
plus(2, 2);
};
calcs();
This is a package created for learning purposes!!