Celebrity Cipher Game

function rot13(str) { // LBH QVQ VG! var solved = ""; for (var i=0; i= 65 && asciiNum <= 77) { solved += String. fromCharCode(asciiNum + 13); } else if (asciiNum >= 78 && asciiNum <= 90) { solved += String.fromCharCode(asciiNum - 13); } else { solved += str[i]; } } return solved; } // [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z] // Change the inputs below to test rot13("SERR PBQR PNZC"); // rot13("y")