🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Functions, Arrays and Objects: all 10 questions

Quiz: Functions, Arrays and Objects · Question 7 of 10

What does this print? (code)

What does this print?

const students = [{ name: "Asha", marks: 82 }, { name: "Ravi", marks: 64 }];
console.log(students.some((s) => s.marks < 70), students.every((s) => s.marks < 70));
  1. A.true true
  2. B.false false
  3. C.true false
  4. D.false true
Answer & explanation

Correct answer: true false

some needs one match (Ravi); every needs all of them to match.

Can you get the rest right without peeking?

Take the timed Quiz: Functions, Arrays and Objects quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →