Caesars Cipher help me

Tell us what’s happening:

Your code so far

function rot13(str) { // LBH QVQ VG!
  return str;

// Change the inputs below to test
rot13("SERR PBQR PNZC");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:

What is the problem you’re having?

I’m assuming you are wondering why the rot13 function doesn’t decode the string.That’s because you have to write the function. It needs to iterate through the string and return a string with all of the letters shifted up 13 characters. Obviously, the later letters like Z can’t go 13 characters higher, you have to loop back to the start of the alphabet. You just have to figure it out. Try writing out the steps then convert each step into code…
That may not be what you need. Best to be clear in the first place :wink: