Changed number to integer in sumAll (#477)

This commit is contained in:
saad sultan
2024-06-01 16:43:35 +05:00
committed by GitHub
parent 312bd8a1d9
commit 2154dcec4a
+1 -1
View File
@@ -1,6 +1,6 @@
# Exercise 05 - sumAll # Exercise 05 - sumAll
Implement a function that takes 2 positive integers and returns the sum of every number between (and including) them: Implement a function that takes 2 positive integers and returns the sum of every integer between (and including) them:
```javascript ```javascript
sumAll(1, 4) // returns the sum of 1 + 2 + 3 + 4 which is 10 sumAll(1, 4) // returns the sum of 1 + 2 + 3 + 4 which is 10