Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js replace space with plus

// replaces space with '+'
str = str.replace(/ /g, "+");
// or
str = str.split(' ').join('+');
 
PREVIOUS NEXT
Tagged: #js #replace #space
ADD COMMENT
Topic
Name
6+7 =