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.
This kata only supports up to node 8 and the
??
operator was introduced in node 14.It says minimal, and 0 < 1.
Yes, I've seen it, and no, you're not returning the first one, try the example in the description:
The input is an array of strings, that's not the problem (I've added the quotes to the error message). Your code is wrong. Not a kata issue.
You're not returning the first one.
It doesn't, try calling your function more than once like it's done in the tests and it'll fail there too. Read this: https://docs.codewars.com/training/troubleshooting/#works-but-no
Please use a spoiler flag when you post code, so that users who didn´t solve the kata cannot see it; I put the flag for you this time. Also use markdown tags to format your code or it's not usable. Refer to the documentation about this and more: https://docs.codewars.com/training/troubleshooting/#post-discourse