Q1: Reverse a StringQ2: Check for PalindromeQ3: How do you remove whitespace from both ends of a string in JavaScript?Q4: How do you extract a section of a string in JavaScript?