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

A
Defines routes
B
Serves static assets
C
Parses JSON
D
Handles errors
Solution:

express.static() serves static files like HTML, CSS, and images.

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!