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.
The >0 is not meant for a a negative number. It's meant for an empty array where length would be 0.
Best solution but array.length will never be negative. Just write {return arr.length ? :} and that would be it (:
fixed, thx for the catch !
When reading the user's solution, you should define the variable with
const
so the user can't overwrite them.Tricky, harder than a 7 imo.
K not exactly the hardest thing ever(had to research a few things) but I felt like that was more than a 7
I'm 100 percent with you, 8 kyu kata should be fundamentals and written cleanly. Honestly going to spend more time figuring out what the heck they are asking for that anything else.
bit of a dirty trick for an 8