Express.Js Middleware, What is next()?

You may have noticed use of next() function while looking at node.js code. Express is a routing web framework which utilize¬†essentially a series of middleware calls.¬†piece of code for a simple¬†route could be like bellow. app.get(‘/users/:id’, function(req, res) { // logic to fetch user for provided id. }); and with a additional parameter next app.get(‘/users/:id’, […]