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.
I didnt post that soln, but if you just started learning javascript, this is the most easiest to understand.
This comment is hidden because it contains spoiler information about the solution
Definitely not a 6kyu problem. This Kata should ideally be 8 kyu, 7kyu at best.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Because you don't need the quotes in the regular expression.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're doing several things wrong there, please, review the basics first and then come back, trying to code like that is both painful and frustrating. The ifs aren't needed at all (and they're wrong), you only have to use the argument of the function
player
and return one property of it, you're accessing that property wrong too. I can't help anymore without giving out the solution. If after that you can't solve it, forfeiting the kata and seeing other users's solutions is an option.This comment is hidden because it contains spoiler information about the solution
No, because an object will never be equal to one of its properties. Delete the ifs and read how to access an object property, that's wrong too.
how is this easy
This comment is hidden because it contains spoiler information about the solution
This is the initial code:
As you can see the function receives only one argument. And that argument is an object. It's in the description:
Loading more items...