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.
Read again my first reply, you're still doing that wrong.
Read this: https://docs.codewars.com/training/troubleshooting
To decide what to do with a letter in the string, you need to check its index in the string. Your if condition is wrong and it's not related with what the problem asks. Your code also isn't doing this:
Start small, do one thing right at a time, and then add more code.
You're using the charCode now, not the index.
Your alphabet isn't right and you're not doing this:
You're baseing the index in the alphabet, not in the string.