Created
February 20, 2024 00:43
-
-
Save ValchanOficial/f9dc4ae7d016c63c25d98a3c1ccc3448 to your computer and use it in GitHub Desktop.
[JS] 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 isPalindrome(word) { | |
return word === word.split('').reverse().join('') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment