MCQs > IT & Programming > Node.js > Study the following code snippet and determine which code line contains an error. 1. var connect =require('connect'), 2. http = require('http'); 3. var app = connect(); 4. http.createServer(http).listen(3000); 5. console.log('port 3000');

Node.js MCQs

Study the following code snippet and determine which code line contains an error.

1. var connect =require('connect'),

2. http = require('http');

3. var app = connect();

4. http.createServer(http).listen(3000);

5. console.log('port 3000');


Answer

Correct Answer:

Line 4

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

search

Node.js Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it