Javascript's window object offers 2 timer based methods - setTimeout() & setInterval().
setTimeout() is used to execute code after a specific time. You can configure a timeout for the code execution.
Syntax : setTimeout( function, time in milliseconds)
setInterval() is used to execute code on regular intervals of time. The code will keep executing after a time interval.
Syntax : setInterval( function, time in milliseconds)
clearInterval() is used to clear/stop the setInterval(). To stop an interval, pass the instance of the setInterval() as an argument.
Syntax : clearInterval( instance of setInterval() )
.
.
.
#inittechlabs #programming #codewithdj #nirmaljoshi #javascript #knowledgesharing
Nesta página do site você pode assistir ao vídeo on-line Timer Methods in Javascript | setTimeout() | setInterval() & clearInterval() | INIT Tech Labs duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário INIT Tech Labs 23 Maio 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 53 vezes e gostou 6 espectadores. Boa visualização!