InterviewSolution
Saved Bookmarks
| 1. |
What do you understand by middleware? How can you use middleware in Node JS? |
|
Answer» Middleware functions are those functions having access to the request object (req), the response object (RES), and also the next FUNCTION in an application's request-response cycle. The following function is BASICALLY a function in the Express router, when invoked, executes the middleware which is succeeding in the current middleware. Middlewares can perform the following TASKS:
|
|