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 comment is hidden because it contains spoiler information about the solution
Uh, reading code without formatting is not easy either! See this for info how to post formatted code.
About your issue, please read the first link I gave you. Especially the part how your solution has to conform to the initial stub, so tests can understand it. You changed the name (and the form) of the function, and now tests can't see it. In JavaScript, tests expect the solution function to be a so-called prototype extension, and it has to look like this:
You only have to fill in the inside. IF you do not know what prototype extensions are in JS and how to use them, you can do some googling, or leave the kata for now and come back to it later, after getting some experience with JS.
Good luck!
Hello, and welcome to Codewars!
Your code not working is not a kata issue. But to be able to help you and know what you did wrong, we need to know your code. Also these articles could be helpful:
https://docs.codewars.com/training/training-example
https://docs.codewars.com/training/troubleshooting
This comment is hidden because it contains spoiler information about the solution
I didn't know you could do that lol
Currently description states to test for positive numbers only. Too late to enforce such changes, also the addition of this requirement would make the kata 6kyu, not ideal, closing...
Obsolete issue with 3.11 + new test framework enabled, closing...
Obsolete issue with 3.11 + new test framework enabled, closing...
You're printing one thing and returning a different one. You overwrote what you did in
array2
witharray
.Log
How Can Mirrors Be Real If Our Eyes Aren't Real
i tested my function in console and it returned the string with capital first letters, but here it says:
Failed asserting that two strings are identical.
Expected: 'How Can Mirrors Be Real If Our Eyes Aren't Real'
Actual : 'How can mirrors be real if our eyes aren't real'
My console returns: How Can Mirrors Be Real If Our Eyes Aren't Real
i'm not sure what's wrong
hi
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
It's called a spread operator, you can use it to define "the rest" of arguments, like (a, b, ...rest) and that'll be an array of the additional arguments. You can call this as myFunc(a, b, c, d) and the rest argument will contain [c, d]. I hope this makes sense. :)
Could you explain what is doing ...names?
Loading more items...