search for string in string code example
Example 1: js string search
var str = "This is a test sentence";
var hasTest = str.includes("test");
if(hasTest == true){
//do a thing
}
Example 2: check if string in string c
if(strstr(sent, word) != NULL) {
/* ... */
}