Carefully study the following code snippet and answer the question that follows:
var http = require('http');
var server = http.createServer(function (request1, result1) {
console.log('This is request Header');
console.log(request1.headers);
result1.write('Working with HTTP');
result1.end();
}).listen(3000);
console.log('This is a sample');
When a client request is made, which of the following outputs is obtained on a web browser?
Correct Answer:
Working with HTTP
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Node.js MCQ Questions