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
This comment is hidden because it contains spoiler information about the solution
Hey there! It's similar to the example given in the kata description with
['apples', 'oranges', 'bananas']
, except with peoples' names (ie.['Ray', 'James']
) instead of fruit. Their outputs should be formatted the same way =)I'm having issues with one of the server's tests:
"should render the list properly".
What is the list passed as param in that case?
Thanks!
..and of course we don't know what's the problem!
If the answer is not correct, you always get this:
Test Passed
Test Passed
Test Passed
Test Passed
Test Passed
The motto for House Targaryen is incorrect.
5 Passed
1 Failed
0 Errors
For beginners it will be really hard to understand what's going on. You need to put more emphasys on the tests I guest
It could be good to have an example of what type of error is expected in some cases. For example, when I uploaded my solution, I got an error in one of the tests (I think that it was the one that calls resolve and then reject) but I didn't know what was the expected result. Is it flag == error? Or it should throw an exception?
Yes that is exactly what it does. When the argument is negative it starts counting from the end of the string.
I don´t get it :(.
How does it work? Does the slice(-1) get the last character of the pair[0]?