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.
Is it an actual best practice?
By adding a method directly into a constructor, the method is copied every time you create a new instance.
That's why it's better to add it using
Ship.prototype.isWorthIt = function(){}
outside the constructor, or by using ES6 classes.
Thanks, I've just written another one
(http://www.codewars.com/kata/reviews/553a849a1e039956bc00013c/groups/56b60c27e3a3a75770001032)
If "name" is null, it would cause a NullPointerException, null doesn't has "isEmpty()" method. You're just validating if the String happens to be equals to "".
Nice, I suppose :3