What function arguments are available to Express.js route handlers?
The arguments available to an Express.js route handler function are:
req- the request object
res- the response object
next(optional) - a function to pass control to one of the subsequent route handlers
The third argument may be omitted, but is useful in cases where you have a chain of handlers and you would like to pass control to one of the subsequent route handlers, and skip the current one.