Answers for "checkPalindrome"

0

checkPalindrome

function checkPalindrome(inputString) {
    if (inputString === inputString.split('').reverse().join('')) {
        return true
    } else {
        return false
    }
}
console.log(checkPalindrome('aba')) //output: true
Posted by: Guest on November-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language