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.
you need to test by passing something more complex to the function besides ABC. songDecoder("AWUBWUBWUBBWUBWUBWUBC"); This will help you understand why you're getting errors.
That's because without the join, it fails the first test, and with it, it fails the second.
The only error is in your code:
You can try changing Node version to 8 to see all the logs (no matter if your code fails), 10 onwards it stops when it fails one test and the next ones aren't executed.
There is no issue with the kata, your code is wrong.
And it'll fail with inputs like
"AWUBAWUBA"
too. Useconsole.log
to evaluate middle values or something like Pythontutor