In Express.js, middleware functions have access to the request object, the response object, and the ______ function.

  • next()
  • send()
  • app()
  • router()
In Express.js, middleware functions have access to the request object (req), the response object (res), and a callback function commonly named next(). The next() function is used to pass control to the next middleware function in the chain.
Add your answer
Loading...

Leave a comment

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