Answers for "js replace characters in an array"

1

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
13

js replace characters in a string

var str = "Original string!";
var str = str.replace("Original", "New");
Posted by: Guest on September-29-2020

Code answers related to "js replace characters in an array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language