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.
OP solved it, closing
see this to format your code
Read this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array there is one method that will be useful.
Remove those double quotes, and check this:
Your code would work only with two values.
Hi. Please use a spoiler flag when you post code (I put the flag for you this time). Without knowing which is the input, it's impossible to say anything. However it's extremely unlikely your code returns something in an IDE and something different here with the same input. You are most probably doing something wrong or misunderstanding something. Please refer to the documentation where you can find some helpful tips: https://docs.codewars.com/training/troubleshooting/