Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

.trim() method

trim is a method that removeds whitespaces  from both ends of a string and returns a new string, without modifying the original string. Whitespace in this context is all the whitespace characters (space, tab, no-break space, etc.) and all the line terminator characters (LF, CR, etc.)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #method
ADD COMMENT
Topic
Name
4+1 =