how to know if a string contains a letter in javascript code example Example: javascript check if string contains a text substring stringVariable.includes("Your Text");