Intro to Java Script HELP

I’m having trouble following the directions for this step of the intro process. If anyone would like to lend a helping hand that would be appreciated.

Javascript documentation is clickable, it will take you to the documentation, here you need to find a suitable method to remove the white spaces/empty spaces from beginning and end of the string.

Wouldn’t the suitable method just be to use the “Remove whitespace” code that is showed at the beginning of the lesson. If not I am really confused about how I would enter this as a string and code it.

this exercise teaches a concept, what if the string you wanted to remove the additional whitespaces from is user input? Then you can’t just remove them from the string, you would need a built-in function or method to achieve this, this is what the exercise is trying to teach

1 Like

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