1function multiSearchOr(text, searchWords){
2
3 for(var i=0; i<searchWords.length; i++)
4 {
5 if(text.indexOf(searchWords[i]) == -1)
6 return('Not Found!');
7 }
8 return('Found!');
9}
10
11alert(multiSearchOr("Hello my name sam", ["Hello", "my"]));