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.
unpowerful
I don't like this solution because you are mutating the function argument.
Great! solution!
Same solution as mine, but you have a great use of naming and aliases to make it more readable.
just genius
If we put the return statement inside the for loop, the for loop will only run once and therefor will not sum all the positive numbers, the return statement will exit the function immediately once it is encountered, and that's why we should place it outside the for loop so the for loop can run correctly al sum all the positive numbers.
May I ask why the return total is outside of the for loop? I had everything correct but that. Just need somebody to explain ty!!
same with mine) good though
My solution was almost same, without the destructuring. That's nice!
This is great! I like it
That's a more readable solutiont than with reg exp
Simple and Сlearly
As for me the best sol., and liberates you from learning REG EXP
Tbh I don't think this is could be best practices... But ok
Well, it wouldn't be in the solution list if it doesn't work. Just, not recommended though. Using global variable like that in production code can lead to various issues.
Would this work? (because i is undefined). Good method tho!
Loading more items...