Q. Which of the following is an event emitter?

  • (A) once
  • (B) process
  • (C) listeners
  • (D) on
πŸ’¬ Discuss
βœ… Correct Answer: (B) process
Explanation: 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().
Explanation by: Mr. Dubey
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


πŸ“Š Question Analytics

πŸ‘οΈ
149
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate