Correct Answer: path
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Node.js Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Node.js MCQ Questions
What would be the value after that the timeouts has been fired? var x = 0; function callback(err,result){ if (err) { x--; return; } x++; } setTimeout(callback,10); setTimeout(callback,10,'Error');
In Express, which of these would NOT expose the variable 'title' to the template renderer?
Which of these is NOT a global object?
Which of these is a valid way to output the contents of a file?
Which express 3 middleware has _NOT_ been moved into its own module in express 4.
What will be the output of the following program?var name = 'John';var dob = 15;console.log('%s was born on %d May, 1987', name, dob)
Choose True or False. In MongoDB, it is possible to insert two values with same_id values into a collection.
What will be the output of the following Node.js code snippet? var EventEmitter = require('events').EventEmitter; Var er = new EVentEmitter(); var handler1 = function () { console.log('Called the handler'); er.removeListener('example', handler1); }; er.on('example', handler1); er.emit('example'); er.emit('example');
Which of the following is/are true about the http.ServerResponse object in Node.js? 1. It is created by an HTTP server. 2. It is passed as first parameter to the 'request' event. 3. It is a writable stream.
Suppose we have the following code in a Node.js file.
var path = require('path');
var completePath ='lexample/test/firsthtml';
Which of the following lines of code should be added to the above code so that the output 'first.html' is displayed?