JavaScript · Junior · Question 56 of 75

What is the difference between some and every?

Explanation

Both stop as soon as the result is known. On an empty array some returns false and every returns true.

Further reading

Problem with a question

JavaScript · Junior · question 56

Test yourself

Take the JavaScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz