What is the difference between SetInterval and setTimeout in javascript ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the difference between SetInterval and setTimeout in javascript ?

I need more explanation on both

4th Dec 2019, 9:03 AM
Adebiyi Muiz
2 Réponses
+ 8
setInterval triggers the callback continuously (multiple times) after a set interval, while setTimeout only triggers once.
4th Dec 2019, 9:25 AM
Valen.H. ~
Valen.H. ~ - avatar
0
Thanks
5th Dec 2019, 2:56 PM
Adebiyi Muiz