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.
The instructions are a bit lacking, yes. But some of the katas are partly (or wholly) about figuring out what to do.
About the messy code, I agree with you if you're referring to this particular solution. It's not very good style to declare some member functions inside of the constructor and some outside on the prototype object. Only inside or outside is better, but if you want to keep the name property "private" you need to use the "inside" method.
Instructions for this Kata weren't really all that clear. The code is a bit messy in my opinion.
I see, thanks for the reply.
It looks like I have some reading to do, to get how it exactly works.
There are no private members in javascript objects, so variables declared in object constructor's scope are used instead.
Is it best practice to have variables inside objects, or you guys were just lazy?
Can you access or see it outside of the object?
I'm just asking, I didn't even know we can do that.
The last test message is pretty hard to figure out