What is the below code doing

var http = require("http");

http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Server started");
response.end();
}).listen(8888);

 Posted by Rajnilari2015 on 12/5/2015 | Category: Node.js Interview questions | Views: 937 | Points: 40
Select from following answers:
  1. Created a Web Server using nodejs
  2. It is listening to port 8888
  3. It returns a success Http Status code 200
  4. It requires Http module
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response