Created
July 12, 2018 14:33
-
-
Save tonkatsu7/06a68bf8b13029e56f33783d11683f58 to your computer and use it in GitHub Desktop.
CoderByte challenge Palindrome
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 Palindrome(str) { | |
return str.split("").reverse().join("").replace(/ /g,'') === str.replace(/ /g,''); | |
} | |
// keep this function call here | |
Palindrome(readline()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment