Q. Which method serves static files?

A
app.static()
B
app.use(express.static())
C
app.serve()
D
app.file()
Solution:

app.use(express.static()) serves static files like images or CSS.

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!