Junior — Senior
Asynchronous delay of execution using the sleep function
livecode
Task condition
It is necessary to implement a sleep function that pauses the execution of code for a specified period of time (in milliseconds). Example of usage in an asynchronous context:
(async () => {
await sleep(500);
console.log(777);
})();