Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

suppress spaces in front and in the end of a string javascript

var hello = '     Hello there!    ';

// returns "Hello there!"
hello.trim();
Source by gomakethings.com #
 
PREVIOUS NEXT
Tagged: #suppress #spaces #front #string #javascript
ADD COMMENT
Topic
Name
2+7 =