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.
Nice kata. A couple of weird caveats thrown in that don't add anything to the challenge. And broken formatting at the start.
Description should be language-agnostic
What is the point of such restrictions? You can might as well add
Array
to the tally... andif
too, and it adds nothing to the original taskInput validation is artificial and adds nothing to the task. In fact, below does not make any sense...
You could might as well just throw an Error for all non-integer inputs, and clamp negative ones up to 1, if you opt to keep the validation requirement. Otherwise, discard them all is the wiser choice.
Description formatting is broken.