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.
Completely flew over my head to use ternary operators here!
Conditional operator
What does the ? and : mean in Javascript?
The second part (true or false) is unnecesary. It's already assesed in the parentheses
-1, needs more
?:
.More test cases for final attempt
I see this sort of thing a lot in code, and it's redundant. You should just return the original conditional check. Consider it as if it were the folowing:
The above would be better written:
Same idea with what is written in this solution.
this
Almost all comments are issues (more than 40), and the satisfaction rating is 90%, weird.
Add a bit more test cases for final submit
Few test cases provided. You could make it harder with invalid input.
Too easy for even a 8kyu kata. Needs a bit more complexity and random test cases.
Duplicates a lot of other katas. Way too easy. No random test cases.
I suggest making this kata at least a bit more difficult. Here are some ideas:
Could be generalized into a more robust, yet still easy, kata.
Lacking test cases
Loading more items...