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.
Solved. Thank you!
I getting an Internal Server Error when when I try to look at the solutions to this kata.
I have solved the kata, I’m just wondering why the error is with this particular kata (there’s nothing wrong with the others).
Link that causes an error: https://www.codewars.com/kata/5264d2b162488dc400000001/solutions/javascript
oh i see. thank you!
i'm still just starting to learn vanilla JS and don't understand Node :)
idk why .flat() doesn't work here.
it works fine on IDE, btw.
I have a similar solution.
If the time zone is different from UTC +0 then it is better to use getUTCHours/Minutes/Seconds
Thank you! I just recently learned about recursion and wanted to better remember and understand this material.
And random tests give me an error in about 1 run out of 3.
This comment is hidden because it contains spoiler information about the solution
I spent almost an hour to find a solution that works correctly with multiple spaces, but it turns out that this is not required.
Which is very strange. In fact, with join(' ') we will get a string separated by single spaces, even if the original string was separated by 2 or more spaces.
This comment is hidden because it contains spoiler information about the solution
Oh! now I see.
Thank you!
It cost's me 2 hrz before I decide to ask )
I can't figure it out.
I've ported all the code to VSCode and it runs correctly.
When I check rps('rock', 'scissors') I get the "Player rock won!" in the console
But on the site I get the error "Player rock won! to equal Player 1 won!"
This comment is hidden because it contains spoiler information about the solution
Random Tests
Testing for 100 random tests
Test Passed
Completed in 10ms
Testing for wrong test 2
expected [ 0, 0 ] to deeply equal []
Completed in 3ms
I don't understand what they want from me. All tests pass fine except for this one.