if string matches,take the next index value in string javascript code example Example: javascript check if string contains a text substring stringVariable.includes("Your Text");