assigned each with a value 8 and 10 add the two variable using the plus operator assign the result to the result variable and return the result variable |
||
---|---|---|
.. | ||
README.md | ||
calculator.js | ||
calculator.spec.js |
README.md
Exercise 08 - Calculator
The goal for this exercise is to create a calculator that does the following:
add, subtract, get the sum, multiply, get the power, and find the factorial
In order to do this please fill out each function with your solution. Make sure to return the value so you can test it in Jest! To see the expected value take a look at the spec file that houses the Jest test cases.