This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Takes a single string and returns a boolean whether it is the same forwards or backwards | |
// EXAMPLE: | |
// "oscar" -> false | |
// "aaaa" -> true | |
// "Racecar" -> true | |
// "Madam, I'm Adam" -> true | |
// Args: string | |
// Return: boolean | |
const palindrome = str => { |
NewerOlder