Https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/learn-javascript-introduction/lessons/introduction-to-javascript/exercises/built-in-methods

https://www.codecademy.com/paths/web-development/tracks/getting-started-with-javascript/modules/learn-javascript-introduction/lessons/introduction-to-javascript/exercises/built-in-methods

How can I Use the .trim() method to remove the whitespace at the beginning and end of the string in the second console.log() statement.
Thank you

Hello @net9943185968. Could you post your code, please? Here is some general reading on .trim().

onsole.log(’ Remove whitespace ');

console.log(‘Codecademy’ .toUpperCase.());

and this is what the question say now
" In the second console.log() statement in app.js , we have a string ' Remove whitespace ' which has spaces before and after the words 'Remove whitespace' .

If we browse the JavaScript string documentation, we find several built-in string methods that each accomplish a different goal. The one method that seems ideal for us is .trim() .

Use the method to remove the whitespace at the beginning and end of the string in the second console.log() statement.

So, from reading the docs on .trim(), how would you use it?

Hint

This is a general rule for when you need to apply a .method() to a string. In cases where you have multiple parentheses, like in console.log("xyz".method()), JavaScrpit works from the inner most item-int this case "xyz".method() to the outermost item-in this case console.log(). Here is how to apply a .method() to a string-the same method of application applies to .trim():

let varA = "xyz";//declaration
let varB = varA.stringMethod();//using a method on a string
console.log(varB);//logging the above result

I hope this helps!