MCQs > IT & Programming > Node.js > The following program was designed to create an Express app that displays the output 'Working with Express' on the web browser. But the program contains some errors. Identify which code lines contain an error. 1) var exp1= require('express'); 2) var http: require('http‘); 3) var newapp = exp1() 4) use(function(req. res. next) [ 5) res.end('Working with Express'); 6) i): 7) https.createServer(newapp).listen(3000);

Node.js MCQs

The following program was designed to create an Express app that displays the output "Working with Express" on the web browser. But the program contains some errors. Identify which code lines contain

an error.


1) var exp1= require('express');

2) var http: require('http‘);

3) var newapp = exp1()

4) use(function(req. res. next) [

5) res.end('Working with Express');

6) i):

7) https.createServer(newapp).listen(3000);

Answer

Correct Answer:

III Line 7


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Node.js Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Node.js MCQ Questions

search

Node.js Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it