πŸ“Š JavaScript
Q. When the “end” event fires on EOF when no more data will arrive, which function is called?
  • (A) s.on("data",f);
  • (B) s.on("end",f);
  • (C) s.on("error",f);
  • (D) s.on("default",f);
πŸ’¬ Discuss
βœ… Correct Answer: (B) s.on("end",f);

Explanation: The above code snippet gets “end” event fired on EOF when no more data will arrive.

Explanation by: Mr. Dubey
The above code snippet gets “end” event fired on EOF when no more data will arrive.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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