Check for Palindromes Help (just a clue please!)

Can someone let me know if I’m on the right track? Or if I need to completely scrap the for loop and try something else. This works for comparing the first and last letters but won’t compare anything after that. Thanks!

function palindrome(str) {
var lowered=str.toLowerCase();
var noSpecial= lowered.replace(/[^a-zA-Z0-9]/g, ‘’);
var myArray=noSpecial.split("");
var i=0;
for (i=0; i<myArray.length/2; i++){
if (myArray[i]===myArray[myArray.length-1-i]){continue;}
else {return false;}
}
}

palindrome(“eye”);

Thank you so much! I got it!