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

    still not working.
    please need help... @sir_Jolaf

  • 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

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

  • Custom User Avatar

    I tried that same code on my ide, gave me only the "." as output.
    The output is what is sent to the MorseCode.get.
    I even put a print statement to view code that actually goes into the MorserCode.get()
    method. turns out its exact "."

  • 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.

  • Custom User Avatar

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