Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    If you talk about a space between the last word and a question/exclamation mark, then see the example in the kata's description. It's like that. Hence the Simple in the title.

  • Custom User Avatar

    It says that there needs to be a space after the last word in the output...

    Where? There's nothing like that in the description.

  • Custom User Avatar

    I think there is an issue with this kata

    No, but there are a lot of issues with your code. Both lines of num.toString... and Number... do absolutely nothing, because you don't assign those values anywhere. Those lines on their own change nothing. As a result, your loop never runs, because "num" is a number, not a string (and doesn't have .length property).