Answers for "replace all word in 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 "replace all word in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language