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.
скорее всего нужно использовать return потому что ты должен возращать ответ
Because there are still some cases you might haven't thought of when you're testing your code on your own environment with your cases, but in codewars those edge cases you missed are tested. That's why your solution can pass your test in vs code, but not on codewars.