Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion foundations/12_calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ The goal for this exercise is to create a calculator that does the following:
3. `sum()`: take an array of numbers and add all the numbers together
4. `multiply()`: take an array of numbers and multiply all the numbers together
5. `power()`: take two numbers (base and exponent) and return the result of raising the base to that exponent
6. `factorial()`: given a single number, find its [factorial](https://en.wikipedia.org/wiki/Factorial)
6. `factorial()`: given a single number, find its [factorial](https://www.mathsisfun.com/numbers/factorial.html)

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.js` file that houses the Jest test cases.