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
En esta página del sitio puede ver el video en línea Timer Methods in Javascript | setTimeout() | setInterval() & clearInterval() | INIT Tech Labs de Duración hora minuto segunda en buena calidad , que subió el usuario INIT Tech Labs 23 mayo 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 53 veces y le gustó 6 a los espectadores. Disfruta viendo!