remove spaces from string jvascript code example
Example 1: remove whitespace javascript
var str = " Some text ";
str.trim();
Example 2: js remove spaces
str = str.trim();
var str = " Some text ";
str.trim();
str = str.trim();