Toast Inc Interview Question

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