how to check if string a partially consists of string b code example Example: javascript check if string contains a text substring stringVariable.includes("Your Text");