const text = "Hello World";
const newText = text.replace("World", "Planet");
alert(newText);  // "Hello Planet"