Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement