var http require http var server http createServer function req res re

1
2
3
4
5
6
var http = require('http');
var server = http.createServer(function (req, res) {
res.write('Hallo Node.js!');
res.end();
});
server.listen(3000);