"FooBar".includes("oo"); // true "FooBar".includes("foo"); // false "FooBar".includes("oo", 2); // false
if (your_string.indexOf('hello') > -1) { alert("hello found inside your_string"); }