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.
That means rounded down.
I agree. there was one for 38.53 hours...my solution rounded up to 39 hours, 39 times 0.5 is 19.5, but it 'expected' 19. Doesn't make sense since it tells you to round, and that he drinks 0.5 an hour. I don't think it counts as a coding challenge when the instructions are deliberately not true.
return
and the next line of your code must be in the same line for it to work. Your function is returningundefined
and that's a falsy value, the tests withtest.expect
don't check if your function returned a boolean, that's why it seems it works for the ones that expectfalse
.