Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Why shouldn’t JavaScript functions not be too long?

  2. A.

     User friendliness

    B.

     Tie up event loops

    C.

     Browser becomes unresponsive

    D.

     All of the mentioned

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The client-side JavaScript functions must not run too long: otherwise they will tie up the event loop and the web browser will become unresponsive to user input.


Be The First To Comment