How to find the index of a particular string?
A
position()
B
index()
C
indexOf()
D
positionof()
Correct Answer: indexOf()
The indexOf() function can be used to find out the index of a particular character or a string. This method return an integer telling the address of the particular character.