1.

Which of the following is an event emitter?(a) once(b) process(c) listeners(d) onI had been asked this question in an international level competition.Origin of the question is Server-Side JavaScript in section Server-Side and Client-Side Scripting of JavaScript

Answer»

Right answer is (b) process

To explain: The process object is an event emitter. The NODE defines other important globals under the process namespaces that contain properties of that object LIKE version, argv, env, PID, getuid(), cwd(), chdir() and EXIT().



Discussion

No Comment Found

Related InterviewSolutions