Q23
Why shouldn’t JavaScript functions not be too long?
A.
User friendliness
B.
Tie up event loops
C.
Browser becomes unresponsive
D.
All of the mentioned
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
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.