Clone and Fork this Repository
Create 2 JavaScript files: one that will hold your calculators functionality and one that will take input from the terminal, call the functions defined in the calculator functionality module and output the calculation to the terminal
User input will be in this format
{mathmatical command} {number1} {number2}
i.e.,
add 5 10
The output will be in this format {number1} {appropriate operand} {number2} = {solution} i.e., 5 + 10 = 15
Your calculator should do the following operations:
- Add
- Subtract
- Multiply
- Divide
- Remainder
- Exponents
Helpful resources