Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (55.6k points)

Can anyone tell me what is middleware in Node JS?

1 Answer

0 votes
by (119k points)

Middleware functions have access and modify the request and response objects in the application’s request-response cycle.

A middleware function can perform the following tasks:

  • It can execute any code.
  • It can make modifications to the request and the response objects.
  • It can end the request-response cycle.
  • It can call the next middleware function in the stack.

If you want to learn Node Js from an online course, you can register for this Node Js Training Course by Intellipaat that provides instructor-led training, hands-on projects, certification, and job assistance.

Also, watch this video on Node Js:

Related questions

0 votes
1 answer
asked Sep 9, 2020 in Web Technology by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Sep 9, 2020 in Web Technology by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Sep 9, 2020 in Web Technology by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Jun 17, 2020 in Web Technology by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Jun 17, 2020 in Web Technology by Sudhir_1997 (55.6k points)

Browse Categories

...