Answers for "suppress spaces in front and in the end of a string javascript"

0

suppress spaces in front and in the end of a string javascript

var hello = '     Hello there!    ';

// returns "Hello there!"
hello.trim();
Posted by: Guest on October-15-2020

Code answers related to "suppress spaces in front and in the end of a string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language