You often see example hello world code for Node that creates an Http Server, starts listening on a port, then followed by something along the lines of:
conso
I use this way Express 4:
app.listen(1337, function(){ console.log('Express listening on port', this.address().port); });
By using this I don't need to use a separate variable for the listener/server.