Beginner JavaScript
Q40 / 100

What does Array.prototype.some() return?

Correct! Well done.

Incorrect.

The correct answer is B) true if at least one element satisfies the callback condition

B

Correct Answer

true if at least one element satisfies the callback condition

Explanation

[1,2,3].some(x => x > 2) returns true. every() checks all elements. some() short-circuits on first match.

Progress
40/100