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 was asking myself this question too, then I came Express 4.x guide page to see this sample:
var server = app.listen(3000, function() { console.log('Listening on port %d', server.address().port); });