MCQ
Which method is used to find the index of an element in an array?
JavaScript
A findIndex()
B indexOf()
C find()
D Both a and b
Explanation

Both indexOf() and findIndex() can be used to find an element's index.