Skip to content

Instantly share code, notes, and snippets.

@pertamaks
Created May 15, 2019 01:54
Show Gist options
  • Save pertamaks/54bd2ad123f4a748acb05843a4eae44e to your computer and use it in GitHub Desktop.
Save pertamaks/54bd2ad123f4a748acb05843a4eae44e to your computer and use it in GitHub Desktop.
Test Palindrome JDS
def is_palindrome(word)
lower = word.downcase
if lower == lower.reverse
p 'Word is Palindrome'
else
p 'Word is not Palindrome'
end
end
is_palindrome('Deleveled')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment