Pallindrome String

PHOTO EMBED

Thu Nov 05 2020 15:33:58 GMT+0000 (UTC)

Saved by @snigdhakhurana10

function pallindromeString(str){
    let start=0, end=str.length -1;
    while(start <= end){
    	if(str[start] === str[end])
        	continue;
        return false;
    }
  return true;
}

console.log(pallindromeString('samasa'));
content_copyCOPY