SyntaxFix
Write A Post
Hire A Developer
Questions
Use overloaded version of indexOf(), which takes the starting index (fromIndex) as 2nd parameter:
indexOf()
str.indexOf("is", str.indexOf("is") + 1);