odin-default-js-exercises/calculator
BernH4 54dd398601
Update calculator.js
We dont need to return 1 if n = 0 because we set the return value (product) to 1 at the first line in the function so it can not be 0.
If you did this for visual reasons thats fine i just wanted to say that.
2020-05-29 12:44:38 +02:00
..
README.md Fixed folder titles 2017-09-22 17:32:56 -04:00
calculator.js Update calculator.js 2020-05-29 12:44:38 +02:00
calculator.spec.js Fixed folder titles 2017-09-22 17:32:56 -04:00

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.