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.
ok, thanks
You can use
console.log(timestring)
to check for which input your code fails.Your code returns
undefined
for the input"14:59:94"
.ok, thanks
neither of those are your input. your function was passed
14:59:94
, the correct answer is15:00:34
, but you returned14:58:34
In general, you can use
console.log()
to print your function's input and see which cases you are failing. I agree that the kata should include that in the error message, unfortunately many katas do not do this.Please use the
question
tag to ask for help in the future. Anissue
is a provable bug in the kataHi! Why this happens "expected '14:58:34' to equal '15:00:34'"??? Isn't '14:58:34' fine?
Problem in JS. Basic tests- ok. But the attempt-test "expected undefined to equal '15:00:34'" fails. It is not clear what exactly is wrong.
I see that there was already a similar problem below. In the console, my code also works correctly with the value of the string '14:60:34', returning '15:00:34'