JS copy const doSomethingAsync = () => { return new Promise(resolve => { setTimeout(() => resolve('I did something'), 3000); }); };