Q. Which method sets a view engine?

A
app.engine()
B
app.set('view engine')
C
app.use('view')
D
app.render()
Solution:

app.set(‘view engine’) sets the view engine in Express.

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!