Complete the code to set EJS as the view engine in Express.
app.set('view engine', '[1]');
Express uses app.set('view engine', 'ejs') to tell it to use EJS templates.
Complete the code to render the 'index' EJS template in an Express route.
app.get('/', (req, res) => { res.[1]('index'); });
res.send instead of res.render.Use res.render('index') to render an EJS template named 'index.ejs'.
Fix the error in setting the views folder path for EJS templates.
app.set('views', path.[1](__dirname, 'templates'));
path.resolve incorrectly or confusing it with join.path module before using it.Use path.join(__dirname, 'templates') to create the correct path to the views folder.
Fill both blanks to set the views folder to 'views' and use EJS as the view engine.
app.set('[1]', path.join(__dirname, 'views')); app.set('[2]', 'ejs');
Use app.set('views', ...) to set the folder and app.set('view engine', 'ejs') to set EJS as the template engine.
Fill all three blanks to render 'profile' template passing a user object with name and age.
app.get('/profile', (req, res) => { res.[1]('profile', { [2]: { name: 'Alice', [3]: 30 } }); });
res.send instead of res.render.Use res.render to render the template, pass the user object with keys name and age.