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.
Quoting Kata description:
NOTE: Extra spaces before or after the code have no meaning and should be ignored.
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.And it is hardly a kata issue taking into account the number of successful solutions.
Probably
.
is not the only thing your code sends toMorseCode.get()
method.I would suggest considering some diagnostic prints to know for sure.