var myWord = new String("John Doe, John Smith");var myIndex = myWord.indexOf("John");// "myIndex" will contain 0 (zero) as the index postionmyIndex = myWord.indexOf("John",4);// "myIndex" will contain 10 as the index position