A

Admin • 828.03K Points
Coach

Q. Which method returns the index of the first occurrence of a value in an array?

  • (A) indexOf()
  • (B) search()
  • (C) find()
  • (D) getIndex()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
indexOf() returns the first index at which a given element is found.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.