Answers for "replace string with character in javascript all find"

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 "replace string with character in javascript all find"

Code answers related to "Javascript"

Browse Popular Code Answers by Language