Palindrome

A palindrome is a word that is exactly the same when it's reversed. 'lol' and 'anna' are both palindromes. 'ruby' is not a palindrome.

Write a function to check if a given string is a palindrome.

def isPalindrome(string)
  # your magic
end

return true if the string is a palindrome, otherwise return false

results matching ""

    No results matching ""