var myString = "abcdefghijklmnopqrstuvwxyz";
var firstString = myString.slice(0, myString.indexOf("d"));
var lastString = myString.substr(myString.indexOf("d")+4);
var newString = firstString.concat(lastString);
document.write("1st: " + firstString);
document.write("<br/>");
document.write("2nd: " + lastString);
document.write("<br/>");
document.write("3rd: " + newString);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.