I have two functions and I need a forced delay between those two consecutive function calls. That is to say,
a // call func a
delay(100) // delay for 100 ms
b // call func b
Is there anyway to do so?
Edit: tried
a();
console.log("a");
setTimeout(b(), 1000);
console.log("b");
setTimeout?a(); setTimeout(() => {console.log("delayed"); b()}, 100);??a()then wait for 100ms and then callb()??setTimeoutis a bad practice...