
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
In Javascript, you can execute code after some delay with the setTimeout(fn, sleepTime) function.
An async function is defined as function which returns a Promise.
To create a Promise, you can code new Promise((resolve, reject) => {}). When you want the function to return a value, code resolve(value) inside the callback.