SetTimeout does not work with recursion. What am I doing wrong?
I need a function to print numbers from 1 to 10 every ms using recursion.
My function prints numbers from 2 to infinity, probably, although the condition for exiting the recursion is written. What am I doing wrong?