Which method is used to find the index of the first occurrence of a specific character or substring in a string?
a. indexOf()
b. findIndex()
c. search()
d. locate()
This question is part of this quiz :