Is there a way to add a delay between the execution of each function in my program? Currently, I have the following setup:
function function0() {
setTimeout(function1, 3000);
setTimeout(function2, 3000);
setTimeout(function0, 3000);
}
While there is a delay between each execution of function0, there seems to be no delay between function1 and function2. How can I address this issue?