Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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!
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #replace #function #javascript #recurrent
ADD COMMENT
Topic
Name
4+6 =