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.
But you don't provide a check for not valid input in this code, so that's really not good practice)
Yes, I agree with you, but the spec says: "When provided with a number between 0-9, return it in words." ...... So 10 is not valid input...
This issue is still present
This is not a best practice.
If you provide this function with 10, which isn't to spec but is valid input, it will return "Nine".