Direction: Choose the correct option
Q1.
How do you pass data to a template for rendering?
Direction: Choose the correct option
Q2.
What is the purpose of app.locals?
Direction: Choose the correct option
Q3.
How can you make data available to a single request's views without passing to res.render?
Direction: Choose the correct option
Q4.
Given res.render('index', { title: 'Home' }), how do you access title in an EJS template?
Direction: Choose the correct option
Q5.
What does res.render() return?
