check word in string javascript but output should be data code example
Example: javascript string contains
var string = "foo",
substring = "oo";
console.log(string.includes(substring));
var string = "foo",
substring = "oo";
console.log(string.includes(substring));