Build a String Formatter - Step 11

Tell us what’s happening:

i have solve this method

console.log(“Result of using the toUpperCase() method:”);
console.log(upperCaseInput);

but its give error

Your code so far

const userInput = "   Hello World!   ";
console.log("Original input:");
console.log(userInput);

const cleanedInput = userInput.trim();
console.log("Result of trimming whitespace from both ends:");
console.log(cleanedInput);

const trimmedStart = userInput.trimStart();
console.log("After using the trimStart() method, leading spaces removed:");
console.log(trimmedStart);

const trimmedEnd = userInput.trimEnd();
console.log("After using the trimEnd() method, trailing spaces removed:");
const upperCaseInput = "";

// User Editable Region


console.log("Result of using the toUpperCase() method:");
console.log(upperCaseInput);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a String Formatter - Step 11

What’s the error?

What is your console.log printing out?

Is it what you expect?

Did you make any other changes than what’s in the instructions?