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
Top