Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace all character in string javascript

let a = "How to search and replace a char in a string";
while (a.search(" ", ""))
{
   a = a.replace(" ", "");
}
console.log(a);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #character #string #javascript
ADD COMMENT
Topic
Name
3+2 =