can someone help me on how to remove the whitespace

We would love to help, and be better able to if we only knew the exact lesson you are on. Please post a link to the exercise. Thanks.

1 Like

You need to use the trim function.
Take the string.

console.log(" remove whitespace ");

and add “.trim()” to the end of it.

console.log(" remove whitespace ".trim());

1 Like

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