when we use setInterval, it is delayed for the specified time, and then runs the function specified in the 1st argument. What should I do if I do not want a delay for the first time?
I have one solution that calls a function initially, and then use setInterval, so there won't be a first call to delay. but this is not the right decision. Therefore, if someone has any other solution, then kindly let me know.
source share