Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all spaces from string javascript

var name = "codepadding code  ";
// remove all white spaces single or multiple spaces
var name = name.replace(/s/g, '');
console.log(name)
//output
//mizanurrahmanmizan
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #remove #spaces #string #javascript
ADD COMMENT
Topic
Name
9+3 =