Q. Which method finds the index of an array element?

A
indexOf()
B
findIndex()
C
search()
D
locate()
Solution:

indexOf() returns the first index of an element in an array.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!