The Code
getValues
This function takes the user input and prepares it for use in the rest of the functions, which it then calls.
rewind
This takes the user's input and flips it backwards. I kept it seperate for the sake of making it cleaner to then give back the user's reversed message.
palindromeChecker
This uses the reversed string from the rewind function, and the user's non-reversed input to verify if something is a palindrome. It starts by cleaning both strings using regex, and then making them lowercase before checking to see if they are equivalent strings.
displayResults
Here we take the output from all of the other functions and use them to construct a message for the user. We also stylize the alert window based on success or failure.