Code Challenge: Trim a user's new password // JavaScript code​​​​​​‌‌​‌​‌‌​‌​‌‌‌‌​​‌‌​‌‌​‌​‌ below // Write your answer here, and then test your code. // Your job is to implement the trimPasswordString() method. // Change these boolean values to control whether you see // the expected answer and/or hints. const showExpectedResult = false; const showHints = false; function trimPasswordString(generatedPassword) { // Your code goes here const originalLength = generatedPassword.length; const trimmed = generatedPassword.trim(); const trimmedLength = trimmed.length; // You can uncomment these lines to see them if needed // console.log("Original Length:", originalLength); // console.log("Trimmed Length:", trimmedLength); return trimmed; }