Skip to content

Instantly share code, notes, and snippets.

@ValchanOficial
Created February 20, 2024 00:43
Show Gist options
  • Save ValchanOficial/f9dc4ae7d016c63c25d98a3c1ccc3448 to your computer and use it in GitHub Desktop.
Save ValchanOficial/f9dc4ae7d016c63c25d98a3c1ccc3448 to your computer and use it in GitHub Desktop.
[JS] Palindrome
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