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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
ty, it worked
You have to return the output, not print it
This comment is hidden because it contains spoiler information about the solution
Read this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array there is one method that will be useful.
This comment is hidden because it contains spoiler information about the solution
Remove those double quotes, and check this:
Your code would work only with two values.
This comment is hidden because it contains spoiler information about the solution
Ah sorry for spoiler. I will check it out
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/
This comment is hidden because it contains spoiler information about the solution