Ad
  • Custom User Avatar

    Quoting Kata description:

    NOTE: Extra spaces before or after the code have no meaning and should be ignored.

  • Custom User Avatar

    I still suggest printing whatever you pass to MorseCode.get(), before line 16 of your code.
    Also I recommend reading the kata description, it contains the details on your particular problem.

    Also note that CodeWars console output is rendered as HTML, which could deform the strings being printed.
    To avoid that I would suggest wrapping the strings being printed in <pre> tag or printing in hexlified format.

  • Custom User Avatar

    And it is hardly a kata issue taking into account the number of successful solutions.

  • Custom User Avatar

    Probably . is not the only thing your code sends to MorseCode.get() method.
    I would suggest considering some diagnostic prints to know for sure.