const text = "Hello World";
const index = text.indexOf("World");
alert("The word is at index " + index);  // "The word is at index 6"