Full-stack dev quiz question #7

Full-stack dev quiz question #7

quizPractical knowledge of JavaScript is needed to answer the seventh question of the quiz for a full-stack developer.

Do you want to know more about JPA? Check the answer to the sixth question.

 

 

What is the main reason of using setTimeout(fn, 0) in JavaScript?

  1. to not wait on the fn execution if it cannot be executed immediately
  2. to delay the fn execution for infinite amount of time
  3. to increase performance
  4. to let the browser finish other work first
  5. to put a lock on a resource

 

For the answer scroll down

.

.

.

 

 

 

 

 

 

 

 

.

.

.

The correct answer is d. For more information about it, see What the heck is the event loop anyway?

If you like what I do, consider buying me a coffee :)

Buy me a coffeeBuy me a coffee