function move() {
pos = pos+1;
t = setTimeout(move, 100);
}
Can that be called recursive? If yes, could you provide any reference?
No, the difference between recursion (func_a calls func_a) or indirect recursion (func_a calls func_b calls func_a) is that using a timer for repetitive calls will (decoupling) not grow the stack and previous state is lost.
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