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.
Yes, agreed!
The first line of the Kata says "Define a class named MyClass inside a namespace MyNamespace." If I hadn't ready your comment I may have never figured this out. Thanks!
Yes, it's a bit confusing since it says "inside a namespace MyNamespace", imo it should say "inside the namespace". Also the comment says "Define MyNamespace". Finally saying "class" and "namespace" could confuse people who comes from other OOP languages..
The example in the description says "var phrase = myObject.sayHello(); // phrase should be 'Hello!'".
Because of the naming I believed that the sayHello function should always output "Hello!" and was wondering why it was specified that the constructor must accept a string. This lead to my solution failing because the test cases were looking for just "hello".
Am I now correct in understanding that sayHello should return the string passed to the constructor and not "hello"?
Whatever it's worth, reading the instructions, I didn't realize that the namespace already existed. I had to read through all the discussion posts to figure it out.
Hey, what can I say? Oh, right. This: http://www.youtube.com/watch?v=hou0lU8WMgo
If I don't know how to achieve it, I at least usually understand the target. I don't get this one. I'll keep at it though.
I love that this is not technically wrong.