Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript replace

var string = "Javascript is fun";
var newString = string.replace("fun", "Awesome");
console.log(newString); // Javascript is Awesome
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #replace
ADD COMMENT
Topic
Name
4+5 =