Answers for "replace function javascript recurrent"

0

replace function javascript recurrent

let str = 'JS will, JS will rock you!';
let newStr = str.replace(/JS/g,'JavaScript');

console.log(newStr);
Code language: JavaScript (javascript)
//output :JavaScript will, JavaScript will rock you!
Posted by: Guest on October-28-2021

Code answers related to "replace function javascript recurrent"

Code answers related to "Javascript"

Browse Popular Code Answers by Language