What will be the output in the browser for the URL: http://localhost:3000/ ?
const http = require('http');
const server = http.createServer((req, res) => {
    res.end("hello world");
    res.end("hello")
})

server.listen(3000);

hello
hello world
hello
hello world
Code with throw error as res.end() can be used only once
Verified Answer
Correct Option - c

To get all Infosys Certified Node Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in