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.
You need to return the value instead of printing it. Returning a value allows it to be checked for equality whilst printing it just outputs it to the console. "Undefined" is the default value when nothing is returned.
All Katas on this website work like this.
'Expected: no one likes this, instead got: undefined' drives me mad. Tried everything. Putting the response in var didn't help. Chcecking if names.length is not only '==0' but also undefined, '<1' and simply '!names' didn't help too. Is the test that broken?