const isPallindrome = (str) => {
	let rev1 = ""
	let rev2 = ""
	let track =  parseInt(str.length/2) - 1
    
	let track2 = track+(track%2===0?2:1)
    for(let i = track; i > -1; i--){
        
		rev1 = rev1 + str[i].toLowerCase()
        
		rev2 = rev2 + str[track2].toLowerCase()
        track2++
            

	}
console.log(rev1, rev2, track)
    
    
}
    console.log(isPallindrome("raceecar"))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: