palindrome number program
function checkPalindrom(str , i , j){
if(i>j){
return;
}
let temp = str;
[temp[i],temp[j]] = [temp[j],temp[i]]
i++ ; j--
checkPalindrom(temp,i,j)
return temp
}
let str = "aba"
let callfunction = checkPalindrom(str.split('') ,0, str.length-1)
if(callfunction.join('') == str){
console.log("Palindrome")
}else{
console.log("Not a Palindrome")
}