Created
March 9, 2017 08:39
-
-
Save idealwebsolutions/b701fd721459f27db4dbcf1c7fc1bc88 to your computer and use it in GitHub Desktop.
Basic palindrome (cheating way)
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 checkPalindrome(inputString) { | |
return inputString === inputString.split('').reverse().join('') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment