Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js trim all spaces

var string = "     Hello World!     "
console.log(string);
//"     Hello World!     "
string2 = string.trim();
console.log(string2);
//"Hello  World!"
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #js #trim #spaces
ADD COMMENT
Topic
Name
9+8 =