Below code, will delay 10 second then execute the function A and B first time.
setInterval(function () {
A();
B();
}, 10000);
I wanna execute A and B at the program run at the same time. Like,
A();
B();
setInterval(function () {
A();
B();
}, 10000);
There is no better way to do it?
Thanks all.