Which function is used to schedule the execution of a function after a specified delay in JavaScript?
-
A
setTimeout()
Correct answer
-
B
setInterval()
-
C
setDelay()
-
D
delayFunction()
Correct answer
A. setTimeout()
15 views
Explanation
The "setTimeout()" function is used to execute a function after a specified delay, enabling asynchronous operations in JavaScript.
Video explanation
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ