Qus : Which of the following JavaScript functions is used to delay code execution?
Qusकोड के निष्पादन (execution) में देरी करने के लिए इनमें से किस JavaScript फ़ंक्शन का उपयोग किया जाता है?
A. wait() B. pause()
C. setTimeout() D. setInterval()
Solution
C. setTimeout()
Explanation
The setTimeout() function is used to delay the execution of a function or a piece of code by a specified number of milliseconds.