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.
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.