hot to check if string is substring in js code example Example: javascript check if string contains a text substring stringVariable.includes("Your Text");