how to check whether a string has a character code example Example: javascript check if string contains a text substring stringVariable.includes("Your Text");