Skip to content

Instantly share code, notes, and snippets.

@neodigm
Last active March 6, 2021 23:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neodigm/56214bdb7d9e110052941dfd065cb83d to your computer and use it in GitHub Desktop.
Save neodigm/56214bdb7d9e110052941dfd065cb83d to your computer and use it in GitHub Desktop.
Palindrome test 🐱
// 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! ^_^
*/
@neodigm
Copy link
Author

neodigm commented Mar 6, 2021

TACOCAT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment