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");

Discover more from

Subscribe to get the latest posts sent to your email.

Leave a comment

Trending