Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the method used to stop an execution of a method?

  2. A.

     clearInterval()

    B.

     clcearTimeout()

    C.

     both clearInterval() and clcearTimeout()

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The clearInterval() method is used to stop further executions of the function specified in the setInterval() method) The clearTimeout() method is used to stop the execution of the function specified in the setTimeout() method.


Be The First To Comment