All challenges
Multiple ChoiceBeginner 30s

Array includes

Choose the best answer for: includes method
Options
  1. 1includes(value) works only on strings and throws on arrays
  2. 2includes(value) uses strict equality and fails on values like NaN
  3. 3includes(value) returns the index where the value is found
  4. 4includes(value) checks if array contains value using SameValueZero

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