let example = "Example String!"; let ourSubstring = "Example"; if (example.indexOf(ourSubstring) != 0) { console.log("The word Example is in the string."); } else { console.log("The word Example is not in the string."); }