We have used multiple libraries so far like jQuery, React and underscore. For frameworks I'm not sure but I think we can consider react, angular and backbone as frameworks. The difference between these terms is mainly about the inversion of control; where your code calls a library function when needed to accomplish a certain task like calling underscoe.js functions. However, it's different for frameworks where your code will be called by the framework itself, and it's regularly more complex.
Middlewares in Javascript are functions that come in the middle of the request-response cycle. They have access to both the request and the response object as well as the next middleware function to be executed; usually called next(). Popular examples on middleware include: body-parser, cors, session, cookie-seesion and cookie-parser.
Comments
Post a Comment