I recently got a question while looking at the javascript.
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write('Hello World!');
res.end();
}).listen(8080);
my question is this.
function().function();
How does this call a function consecutively? If I want to know more about this grammar, what keyword should I search for? Thank you.