Below is a simple function to look for the existence of multiple strings within another string using a loop that performs an index.of search in each loop. Any index.Of that return false, the function returns false..
In the textbox below, change around and play with the list of comma separated list of words that appear in this sentence:
The Javascript function on this page allows a programmer to perform multiple index.Of tests in one simple function