← 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));
- A.true true
- B.false false
- C.true false
- 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 →