From f8a5478033ce3db301157c2c1502ae9c490bc683 Mon Sep 17 00:00:00 2001 From: Minho Cho Date: Wed, 21 Jul 2021 01:36:34 +0900 Subject: [PATCH] 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. --- sumAll/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sumAll/README.md b/sumAll/README.md index 8e18b9e..55864f3 100644 --- a/sumAll/README.md +++ b/sumAll/README.md @@ -1,11 +1,16 @@ # Exercise 05 - sumAll -Implement a function that takes 2 integers and returns the sum of every number between(and including) them: +Implement a function that takes 2 integers and returns the sum of every number between (and including) them: ```javascript 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