Teodor Cristian Teodor Cristian - 2 months ago 17
Node.js Question

What is Middleware in ExpressJS?

I am a beginner in Node JS and I am trying to learn website developement with Node.js and Express. I have found this word: middleware, especially when I was documenting about callback functions and

app.use()
function. What is middleware? What is used for? What is the connection between
app.use()
function and middleware?

Answer Source

Try reading this: http://expressjs.com/en/guide/using-middleware.html. This is node js documentation website. Try documenting and learning from here.