Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How many parameters you should pass in the middleware function.

How many parameters you should pass in the middleware function?
Three (3) parameters you should pass in the middleware function. (req,res,next)
app.use((req, res, next) => {
  console.log('Time:', Date.now())
  next()
})
 
PREVIOUS NEXT
Tagged: #How #parameters #pass #middleware
ADD COMMENT
Topic
Name
4+6 =