Ad
  • Custom User Avatar
  • Custom User Avatar

    You can use console.log(timestring) to check for which input your code fails.

    Your code returns undefined for the input "14:59:94".

  • Custom User Avatar
  • Default User Avatar

    neither of those are your input. your function was passed 14:59:94, the correct answer is 15:00:34, but you returned 14: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. An issue is a provable bug in the kata

  • Custom User Avatar

    Hi! Why this happens "expected '14:58:34' to equal '15:00:34'"??? Isn't '14:58:34' fine?

  • Custom User Avatar

    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'