SyntaxFix
Write A Post
Hire A Developer
Questions
The trim() method removes whitespace from both sides of a string.
Source
You can use a Javascript replace method to remove white space like
"hello world".replace(/\s/g, "");
var out = "hello world".replace(/\s/g, "");_x000D_ console.log(out);