Q. What is the purpose of express.Router()?

A
Starts the server
B
Creates modular route handlers
C
Parses JSON
D
Sends responses
Solution:

express.Router() creates a new router object for modular routing.

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!