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.
If I dont use the input, what will be the value of cc? I try to delete the cc = input(...), but shows that I didnt pass the cc value.
No, your code is wrong and it fails with some input values (not with that one). Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
True, my bad. Won't happen again.
has been approved
Study maths for 3 hours, code for 3 minutes. No, thanks.
Oh, I see now. One does not simply break out of .forEach loop!
Thanks for response. I learned something today!
You have some problem in your code like this:
console.log
returns undefined.Factor translation
@hobovsky my result "Player 1 Won!"
Use a simple loop, the return of forEach isn't working as you think it should.
There is something wrong with this kata.
This comment is hidden because it contains spoiler information about the solution