Q. Which method returns the first index of an element?

  • (A) search()
  • (B) findIndex()
  • (C) indexOf()
  • (D) find()
πŸ’¬ Discuss
βœ… Correct Answer: (C) indexOf()
Explanation: indexOf() returns the first index of a matching element.
Explanation by: Chandani
indexOf() returns the first index of a matching element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
83
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
80%
Success Rate