javascript remove leading spaces only code example
Example: suppress spaces in front and in the end of a string javascript
var hello = ' Hello there! ';
// returns "Hello there!"
hello.trim();
var hello = ' Hello there! ';
// returns "Hello there!"
hello.trim();