In node JS HTTP module which method is used to create server code example
Example: http module in nodejs
//HTTP MODULE NODE.JS
var http = require('http');
var server = http.createServer(function(req, res){
//write code here
});
server.listen(5000);