Vidyalelo
JavaScript · Q5

Server

Programming · JavaScript · question 5

Q5

Which of the following is an event emitter?

A.
once
B.
process
Answer
C.
listeners
D.
on

Answer: Option B

Solution

Answer: Option B
Solution:
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().