In this challenge, you need to implement functions that allow you to do arithmetics as shown in the following example:
eight(plus(nine())); // Must return 17
five(times(two())); // Must return 10
six(dividedBy(two())) // Must return 3
- You must implement functions for each number from
one
tonine
- You must implement the following operations:
plus
,minus
,times
,dividedBy
- Build your solution in
index.js
- Run
npm install
oryarn install
- Run
npm test
oryarn test
- No Errors? Go ahead and submit a Pull Request!