Q. What is the purpose of app.listen()?

A
Defines a route
B
Starts the server
C
Mounts middleware
D
Sends a response
Solution:

app.listen() starts the Express server to listen for requests.

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!