A

Admin • 802.91K Points
Coach

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);
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category JavaScript
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.