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.
This comment is hidden because it contains spoiler information about the solution
str1 = 'adhdwelxvzofdfm', str2 = 'hello'
return false;
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I thought this was an error too but in the prompt it says to ignore spaces before and after.
This comment is hidden because it contains spoiler information about the solution
When I tried to submit my solution the 'More complex tests' prevented me from doing so because apparently there is an extra space at the beginning of the text while it doesn't happen when I test that same test example a space doesn't show up!
I'm using Javascript.
Try console.log(MORSE_CODE) so that you can take a look at it?
I tried to use MORSE_CODE. It won't work either!
for javascript use: MORSE_CODE
You will have to query it to determine what it is and how to use it.
MorseCode or MorseCode.get(''); will not exist in the Javascript solution from what I can tell. That part was rather confusing to me as well. It would be good if they just specify each language and the object or method to use clearly. (including the Javascript)
I keep getting this error message "MorseCode is not defined" as I'm using "MorseCode.get('')" in Javascript and I'm lost because my code doesn't seem to have anything wrong with it besides that.
How can I solve this issue?!