search string if check with js code example Example: javascript check if string contains a text substring Click to copystringVariable.includes("Your Text");