odin-default-js-exercises/calculator
Naoufal Aziane 9fe3c909b0
Remove unneeded line
the line " if (n === 0) return 1 " can be omitted, because the ' product = 1 ' and the loop won't run if  'n = 0'  and the returning result will be '1'
2023-01-30 10:57:38 +01:00
..
README.md pulled eslint files from jester-tester and updated exercise numbers 2021-05-12 21:37:19 +12:00
calculator.js Remove unneeded line 2023-01-30 10:57:38 +01:00
calculator.spec.js calculator/README.md: Removed references to Jasmine. 2021-05-10 14:57:23 +12:00

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.