Responses in Express

Which of this request-level information cannot be exposed using the property res.locals in the below given code snippet?

app.use(function(req, res, next){ 
 res.locals.user = req.user; 
 res.locals.authenticated = ! req.user.anonymous; 

a. request path name

b. authenticated user

c. user settings

d. download path name

Skill Covered

  • ExpressJS
  • Responses


  • Fundamentals

Question Type

  • MCQs(Single Correct)

Related Posts