Created
December 22, 2015 15:03
-
-
Save jgarciaruiz/01b091d8ddfa3d4b975b to your computer and use it in GitHub Desktop.
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(thestr) { | |
var reverseStr = thestr.split('').reverse().join(''); | |
if (thestr == reverseStr){ | |
return "yay"; | |
}else{ | |
return "nope" | |
} | |
} | |
//checkPalindrome("aba"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment