Difference Between setInterval and setTimeout in Javascript

Publicado em: 24 Julho 2021
no canal de: Knowledge Thrusters
856
12

In this video, you will be able to understand the difference between setInterval and setTimeout in JavaScript.

The setTimeout() function is used when you wish to run your JavaScript function after a specified number of milliseconds from when the setTimeout() method was called. This goes for one execution.

The setInterval() function, as the name suggests is commonly used to set a delay for functions that are executed repeatedly. This goes for unlimited times.

The difference between setTimeout() and setInterval() is that setTimeout() triggers the function call once. While, the setInterval() triggers the function repeatedly after the specified interval of time.


#javascript #knowledgethrusters


Nesta página do site você pode assistir ao vídeo on-line Difference Between setInterval and setTimeout in Javascript duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Knowledge Thrusters 24 Julho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 856 vezes e gostou 12 espectadores. Boa visualização!