Practical 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?
- to not wait on the fn execution if it cannot be executed immediately
- to delay the fn execution for infinite amount of time
- to increase performance
- to let the browser finish other work first
- 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?