Question Bank
1899 approved questions from the community
Which of the following can be done with `express.Router`? (Select all that apply)
Which of the following are benefits of using Express.js? (Select all that apply)
Which of the following are types of middleware in Express.js? (Select all that apply)
Which of the following statements are true about Express.js routing? (Select all that apply)
Which of the following are recommended practices for Express.js security? (Select all that apply)
Which HTTP status codes indicate client errors? (Select all that apply)
Which of the following are common debugging techniques for Express.js applications? (Select all that apply)
What is the purpose of `res.locals` in Express.js?
How do you redirect a request to a different URL in Express.js?
What method would you use to send a file for download in Express.js?
When should you use both `app.get()` and `app.post()` for the same route path?
How can you set cache-control headers for static files served by Express.js?
How do you access HTTP headers from a request in Express.js?
What is the purpose of the `req.fresh` property in Express.js?
What middleware is needed to parse URL-encoded form data in Express.js?
What is the difference between application-level and router-level middleware?
How can you serve static files from a subdirectory and make them accessible at a specific URL prefix?
What is the signature of an error-handling middleware in Express.js?
How do you access cookies in an Express.js application?
What is the purpose of calling `next(err)` with an error parameter?