Toast Inc interview question

JavaScript function to reverse a string and check if it's a palindrome.