Build a String Formatter - Step 15

Tell us what’s happening:

cant carry out the task of 15. how to concatenate the lowercaseWord.slice(0, 5) with the result of the correct method for converting to uppercase lowercaseWord[5]

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 acessedlowercaseWord = lowercaseWord[5].toUppercase
console.log(lowercaseWord.slice(0, 5) + acessedlowercaseWord)

Your browser information:

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

Challenge Information:

Build a String Formatter - Step 15

Take the instructions one step at a time. You can see that you need to end up with “camelC” in the console instead of what you see. What do you need to add to the camelCased Version variable to achieve this? I suggest you read again how the slice method works and how this can help here.