Skip to main content

Command Palette

Search for a command to run...

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

Published
•1 min read•View as Markdown
Which are the arguments available to an Express JS route handler function?
R

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

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.

More from this blog

R

Raja Muhammad Asher - Senior Software Engineer - Full Stack Developer

157 posts

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