Build a String Formatter - Step 13

Tell us what’s happening:

The variable called “lowerCaseWord” is good but in the computer it says that I need to put “lowercaseWord”, but even I put it as in the screen it doesn’t change nothing at all.

“Start by creating a variable called lowercaseWord and assign it the string "camelcase"

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:");
console.log(trimmedEnd);

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

const lowerCaseInput = cleanedInput.toLowerCase();
console.log("Result of using the toLowerCase() method:");
console.log(lowerCaseInput);


// User Editable Region

const lowercaseWord = "camelcase";
const camelCaseVersion = "";
console.log("Camel cased version:");
console.log(camelCasedVersion);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a String Formatter - Step 13

Welcome back @M.Colb !

The variable name you created is slightly different than the variable name you were asked to use in the instructions:

create another variable called camelCasedVersion

Do you see it?

Happy coding!

1 Like

Welcome back to the forum @M.Colb

In the editor, the three dots below the variable on line 31 indicates that variable was not declared. In this instance you have a typo.

Happy coding

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.