Qtr No. 213, New Town Yehlanka
Indore 454775, India
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 |
To get all Infosys Certified Node Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee