Skip to main content

Which are the arguments available to an Express JS route handler function?

Published 1 min readMarkdown
Part of seriesExpress
Which are the arguments available to an Express JS route handler function?

Express.js route handler function takes three arguments (usually named: req, res, next), that will contain the HTTP Request object, HTTP response, and the next function in the middleware chain.

Source:

Express Tutorial Part 4∷ Routes and Controllers - Learn Web Development | MDN. 13 Sept. 2022, developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/routes.

About the author

  • Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating & making a difference

No comments yet. Be the first to comment.

More from this blog