The method of the string object to search an occurrence of the specified string is search().
There are many method of the string object to search a value. These is example for that method,
Since, the question is want to return the specified string so we can use search() method.
Learn more about indexOf() here:
brainly.com/question/20461017
#SPJ4