I know about setInterval syntax:
setInterval(function,milliseconds)
I want two functions to be called at the same time instead of one for every 8 seconds. Is there any way to do it by setInterval function like this?
setInterval(function1, function2, 8000)
Yes, you can do that, write a wrapper function
for that both functions.
Try
setInterval(function(){ function1(); function2(); },8000)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With