How an object can be changed after being passed to another function ? For example :
var app = require('express')();
var http = require('http').Server(app);
app.get('/', function (request, response) {
response.sendFile(__dirname + '/index.html');
});
'http' is already created, using the previously defined 'app'.
Then, a route is set using app.get. But how is that possible ? How the http server will have access to this route defined after assignment ?