All challenges
Multiple ChoiceBeginner 30s

Array indexOf

Choose the best answer for: indexOf
Options
  1. 1indexOf returns first index or -1 using strict equality
  2. 2indexOf uses loose equality and finds values like NaN as equal
  3. 3indexOf returns the matching element itself, not its index
  4. 4indexOf is the same as find and accepts a predicate function

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle