Please enable JavaScript.
Coggle requires JavaScript to display documents.
Webapp (express.js (.use() (.use() adds functionality to request…
Webapp
express.js
-
-
-
-
-
-
.use()
-
eg:
router.use(function(req, res, next) {
. console.log(req.method, req.url);
. next();
});
-
-
-
-
-
-
-
Library vs. Framework
-
framework
-
Don‘t call us, we call you
-
-
-
Closure
-
function still has access to the values of the outer funktion
but they can only be accessed within the function
-
-
-
-
-
-