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.
So any survivors know what to put on your gravestone?
Do you know what a pure function is? Look it up if you don't.
If the solution to this kata were a pure function, it will clearly not work. Therefore...
Yes, and you have to write your function so the argument is optional.
That's part of the task. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
You're asking for feedback and that's what you got, I don't see any hate in the previous comments. I'd add, add random tests, they're mandatory, have you read Kata authoring guide yet? https://docs.codewars.com/authoring