A.  The setInterval(cb, ms) global function is used to run callback cb repeatedly after at least ms milliseconds.

B.  The setInterval(cb, ms) method returns an opaque value that represents the timer which can be used to clear the timer using the function clearInterval(t).

C.  Both of the above.

D.  None of the above.

1
Correct Answer :
Both of the above.
Explanation :

The setInterval(cb, ms) global function is used to run callback cb repeatedly after at least ms milliseconds. The actual delay depends on external factors like OS timer granularity and system load. - A timer cannot span more than 24.8 days. This function returns an opaque value that represents the timer which can be used to clear the timer using the function clearInterval(t).


Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python