adplus-dvertising
frame-decoration

Question

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);

Answer: (b).s.on("end",f);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When the 'end' event fires on EOF when no more data will arrive, which function is called?