Fix code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Palindrome Checker</title> </head> <body> <h1>Palindrome Checker</h1> <script> function isPalindrome(str) { // Remove non-alphanumeric characters and convert to lowercase const cleanStr = str.replace(/[^a-zA-Z0-9]/g, '').toLowerCase(); // Check if the clean string is equal to its reverse return cleanStr === cleanStr.split('').reverse().join(''); // Error: Missing semicolon } // Test cases try { console.log(isPalindrome("A man, a plan, a canal, Panama")); // Output: true console.log(isPalindrome("racecar")); // Output: true console.log(isPalindrome("hello")); // Output: false console.log(isPalindrome(123)); // This should throw an error } catch (error) { console.error(error.message); } </script> </body> </html>