Receive requests in Node.js
var http = require('http'); var server = http.createServer(function(req, res) { console.log('got a request'); response.write('hi'); response.end(); }); server.listen(3000);