daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function isPalindrome(word) {
  2.    return word == word.split('').reverse().join('');
  3. }
  4.    
  5. function isPalindrome(word) {
  6.   return word.split("") === (word.split("").reverse());
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top