In Express, the app.use() function is used to add ________ that can process incoming requests before they reach the routes.

  • Components
  • Handlers
  • Middleware
  • Modules
In Express, the app.use() function is used to add "middleware" that can process incoming requests before they reach the routes. Middleware functions can perform tasks like authentication, logging, or modifying request/response objects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *