Skip to content

Instantly share code, notes, and snippets.

@tonkatsu7
Created July 12, 2018 14:33
Show Gist options
  • Save tonkatsu7/06a68bf8b13029e56f33783d11683f58 to your computer and use it in GitHub Desktop.
Save tonkatsu7/06a68bf8b13029e56f33783d11683f58 to your computer and use it in GitHub Desktop.
CoderByte challenge Palindrome
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