Examveda
Examveda

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

Answer: Option D

Solution(By Examveda Team)

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.

This Question Belongs to Javascript >> Caching And Debugging

Join The Discussion

Related Questions on Caching and Debugging