function delayResult() { return new Promise(resolve => { setTimeout(() => { resolve(‘Done’); }, 5000) }) } async function getResult() { let result = await delayResult(); return result; } getResult();