Build a String Formatter - Step 15

Tell us what’s happening:

Hi

In this step do I need to introduce the concatenated expressions in a console log or or in a const

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);

const lowercaseWord = "camelcase";

// User Editable Region

const camelCasedVersion = lowercaseWord.slice(0, 5)

// User Editable Region

console.log("Camel cased version:");
console.log(camelCasedVersion);

 const result = "lowercaseWord.slice(0, 5)"+ "lowercaseWord[5].toUpperCase()";

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15

Challenge Information:

Build a String Formatter - Step 15

you need to complete this line

thank you, I’ve completed it

my last line has a semi colon but I’m sure that I concatenated it properly,

is it meant to be in double quotations?

no, it’s not meant to be at all in quotes

you should not write a new line, you need to complete the existing line

I just noticed I don’t have a .slice in the last line

When you say complete the existing line, what do you mean ?

Don’t add a new line of code, edit the line of code that is already there.

my bad, I moved it to camelCasedVersion

why isn’t it in parentheses?

what is not in parentheses?

i put

const camelCasedVersion = ( lowercaseWord.slice(0, 5) + lowercaseWord[5}.toUpperCase());

this would be an issue
and also you should not use () all around

thank you, why can’t I use it all around

these tests are checking what you have written, and they do not allow the () all around because it’s not something that is used