🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.return
  2. B.next()
  3. C.res.end()
  4. 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 →