Home / CSE MCQs / Javascript MCQs :: Discussion

Discussion :: Javascript MCQs

  1. When the "end event fires on EOF when no more data will arrive, which function is called?
  2. A.
    s.on("data",f);
    B.
    s.on("end",f);
    C.
    s.on("error",f);
    D.
    s.on("default",f);

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The above code snippet gets "end event fired on EOF when no more data will arrive.


Be The First To Comment