Last active
March 6, 2021 23:45
-
-
Save neodigm/56214bdb7d9e110052941dfd065cb83d to your computer and use it in GitHub Desktop.
Palindrome test π±
This file contains hidden or 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
// Is TACOCAT spelled backward still TACOCAT? | |
// People have been asking this question for thousands of years until... | |
// I wrote a function in JavaScript to prove it and end the debate. Palindrome in JavaScript | |
let isPalindrome = ( sIn = "tacocat" ) => ( sIn.split("").reverse().join("") === sIn ); | |
/* | |
_._ _,-'""`-._ | |
(,-.`._,'( |\`-/| | |
`-.-' \ )-`( , o o) | |
`- \`_`"'- My name is Omelette! ^_^ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TACOCAT