Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Refactoring a function by using it in the refactor there is no challenge, what i say...
Not a kata issue.
The most probably reason is you segfaulted somewhere and the program crashed.
Not a kata issue
Not an issue. What's the problem if many language has the exact functionality as built-in?
Don't use global variables ;-)
This comment is hidden because it contains spoiler information about the solution
(You should format your code)
Firstly there's no proper
sumOfNum
declaration, and I'm surprised that it's even working for you (is it?).Secondly, your loop is working with wrong bounds because
given two integers A and B, which can be positive or negative, find the sum of all the numbers between including them too
.Thirdly, you can't
console.log()
afterreturn
- you're trying to perform an operation after the function has already stopped working.This comment is hidden because it contains spoiler information about the solution