Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript trim


var str = ' foo  ';
str.trim(); //return string 'foo'

var str = 'foo  ';
str.trim(); // return string 'foo'
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #javascript #trim
ADD COMMENT
Topic
Name
7+9 =