js remove spacing code example
Example 1: js remove spaces
str = str.trim();
Example 2: remove space from string javascript
var str = " Hello World! ";
alert(str.trim());
str = str.trim();
var str = " Hello World! ";
alert(str.trim());