update README.md

I just went through this problem and ended up debugging by looking at the sumAll.spec.js log on my console because the README.md did not list the exceptions the function should have considered. I believe it would be more beneficial to provide students what they should be considering when implementing the following question.
This commit is contained in:
Minho Cho 2021-07-21 01:36:34 +09:00 committed by GitHub
parent acca175d24
commit f8a5478033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@ Implement a function that takes 2 integers and returns the sum of every number b
sumAll(1, 4) // returns the sum of 1 + 2 + 3 + 4 which is 10
```
In addition, you should assume the following while implementing your function:
- parameters are not necessarily passed in numerical order
- negative integers are not valid
- only integers are valid
## Hints