How to find the index of a particular string?
How to find the index of a particular string? 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.