// indexOf():-It provides the position of a char value present in the given string.
// String.indexOf("char");
let srt = "You must protect the planet. If the Decepticons find it, then our people are truly finished."
console.log(srt.indexOf("p"));
console.log(srt.indexOf("must"));