Caesars Cipher any advice?

What do you guys think about my way of coding this project? Any tips or advice on my code? Thank you!

   **Your code so far**
function rot13(str) {
let myCipher = []
let finalCipher=[]
let myArr = str.split("");
let finalArr=[]
for(let i=0; i<myArr.length; i++){
 for(let i=0; i<myCipher.length; i++){
  if(myCipher[i] <78 && myCipher[i] >64) {
   finalCipher.push(myCipher[i] +13)
  else if(myCipher[i]<64){
 else finalCipher.push(myCipher[i] -13)
 for(let i=0; i<finalCipher.length; i++){
 return finalArr.join("").replace(/[-]/g,"")

console.log(rot13("SERR YBIR?"));  
   **Your browser information:**

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

Challenge: Caesars Cipher

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.