b030e9a66b
While the previous return functioned the same (because it was calling another factorial function), it was not recursive. All credit still to ThirtyThreeB, just thought this might confuse some people and was worth fixing! |
||
---|---|---|
.. | ||
README.md | ||
calculator.js | ||
calculator.spec.js |
README.md
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 Jasmine! To see the expected value take a look at the spec file that houses the Jasmine test cases.