Answers for "js replace all words that start with"

-2

js replace all spaces

var replaced = str.replace(/ /g, '_');
Posted by: Guest on October-21-2020
0

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);
Posted by: Guest on March-27-2020

Code answers related to "js replace all words that start with"

Code answers related to "Javascript"

Browse Popular Code Answers by Language