JavaScript: string replace

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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: