Vidyalelo
JavaScript · Q85

Caching And Debugging

Programming · JavaScript · question 85

Q85

How to find the index of a particular string?

A.
position()
B.
index()
C.
indexOf()
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
The indexOf() function can be used to find out the index of a particular character or a string.