Skip to content

Latest commit

History

History
17 lines (10 loc) 路 400 Bytes

File metadata and controls

17 lines (10 loc) 路 400 Bytes

Is palindrome

Instructions

Given a string, return true if the string is a palindrome or false if it is not. Palindromes are strings that form the same word if it is reversed. Include spaces and punctuation in determining if the string is a palindrome.

challenge | solution

Examples

palindrome("abba") // true

palindrome("abcdefg") // false