Saved Bookmarks
| 1. |
What Is The Parameter “next” Used For In Express? |
|
Answer» app.get('/userdetails/:id?', FUNCTION(req, res, NEXT){ req and res which REPRESENT the request and response objects nextIt PASSES control to the next matching ROUTE. app.get('/userdetails/:id?', function(req, res, next){ req and res which represent the request and response objects nextIt passes control to the next matching route. |
|