I found the description a little confusing. I had to read it several times to understand it enough to figure out a solution.
The same object (and its properties) needs to be used with a control method, so, changing the constructor messes things up.
I want my private fields been hidden.
And private fields affect on test assert ?
In my case it reads only return of isWorthIt method.
Mark your post as having spoiler content next time. And why did you change the constructor? It was already given to you.
This comment is hidden because it contains spoiler information about the solution
Wouldn't item==item && item==item make item==item redundant?
item==item && item==item
nice! use === not ==
Typo: this days
console.log ? ;)
The Sample Tests below passed, so what in the world are the edge cases doing to return so many errors?
var ship = new Ship()
Test.assertEquals(ship.isWorthIt(0, 0), false)
Test.assertEquals(ship.isWorthIt(40, 10), true)
Number of crew members value multiplied by 1.5, then subtracted from the ship draft value. Plain and simple.
you give me 25 cents, ty mate
Not an issue
Not an issue of the kata.
Solved (and not an issue)