This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_Palindrome(str1) { | |
var rev = str1.split("").reverse().join(""); | |
return str1 == rev; | |
} | |
function longest_palindrome(str1){ | |
var max_length = 0, | |
maxp = ''; |