Q. When the “end” event fires on EOF when no more data will arrive, which function is called?
β
Correct Answer: (B)
s.on("end",f);
Explanation: The above code snippet gets “end” event fired on EOF when no more data will arrive.