← Quiz: Node, Express and REST: all 10 questions
Quiz: Node, Express and REST · Question 3 of 10
What must a middleware call to pass control to the next handler?
What must a middleware call to pass control to the next handler?
- A.return
- B.next()
- C.res.end()
- D.continue
Answer & explanation
Correct answer: next()
next() hands over to the next middleware or route.
Can you get the rest right without peeking?
Take the timed Quiz: Node, Express and REST quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →