showing results for - "checkpalindrome"
Lenny
13 Apr 2018
1function checkPalindrome(inputString) {
2    if (inputString === inputString.split('').reverse().join('')) {
3        return true
4    } else {
5        return false
6    }
7}
8console.log(checkPalindrome('aba')) //output: true
queries leading to this page
checkpalindromecheckpalindrome