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.
Your code is wrong, not a kata issue. It reaches the first case where p1 equals something and enters that if, because it doesn't find a match, the code ends there returning
undefined
. Use this to see how your code works.And please read this: https://docs.codewars.com/training/troubleshooting
(Rock Paper Scissors) "expected undefined to equal 'Player 2 won!'"
what does this means?
other two sections are passed.