Answers for "js replace all char in string"

0

js replace all char in string

"x".replaceAll("x", "xyz");
// xyz

"x".replaceAll("", "xyz");
// xyzxxyz

"aA".replaceAll("a", "b", true);
// bb

"Hello???".replaceAll("?", "!");
// Hello!!!
Posted by: Guest on October-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language