Q. What is the purpose of next() in middleware?

A
Stops execution
B
Passes control to the next middleware
C
Sends a response
D
Defines a route
Solution:

next() passes control to the next middleware function.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!