JavaScript Quiz
10 questions · no time limit
0:00
DEBUGGING AND TESTING
Question 1 of 10
No time limit
Current
Answered
Flagged
Not seen
PASSAGE
The function findUser(users, id) must return the matching object from users, or null when no object has that ID. A suspected implementation returns the first object whenever the requested ID exists anywhere in the array, while still returning null for a missing ID. Use const users = [{ id: 1, name: "Ana" }, { id: 2, name: "Bo" }];.
Which test rules out the suspected implementation and also verifies the missing-ID result?
YOUR PROGRESS
10
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F