Suppose you have two strings and you need if they contains same words. Then in this case you have to use 'strName.indexOf' function.
Let's consider the example below:-
var MyString= "I'm explaining string match on findnerd portral";
var Find = MyString.indexOf("findnerd");
alert(Find );
0 Comment(s)