Another quick code snippet showing how to replace a piece of a string with an alternate string: –

var myString = "development environment";
myString = myString.replace("development", "release");
Advertisements