These are chat archives for Moose1551/JavaProblems

7th
Jun 2016
Zach
@Moose1551
Jun 07 2016 07:12

function rot13(str) {

var newString = '';

for (var i = 0; i < str.length; i++) {
newString += str[i].charCodeAt(0) + " ";
if (str.fromCharCode(65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78)) {
return str.fromCharCode(i) + 13;
}

return newString;
}}
rot13("SERR PBQR PNZC");