Q. Which method returns the index of the first occurrence of a value in an array?
β
Correct Answer: (A)
indexOf()
Explanation: indexOf() returns the first index at which a given element is found.