Answers for "how to replace every instance of a substring in a string javascript"

1

replace all js

let a = 'a a a a aaaa aa a a';
a.replace(/aa/g, 'bb');
// => "a a a a bbbb bb a a"
Posted by: Guest on August-27-2020
6

str replace javascript all

str.replace(/abc/g, '');
Posted by: Guest on May-16-2020

Code answers related to "how to replace every instance of a substring in a string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language